priv/docs/workers_ai_text_generation.md

# Workers AI Text Generation

## Execute @cf/aisingapore/gemma-sea-lion-v4-27b-it model.

**POST** `/accounts/{account_id}/ai/run/@cf/aisingapore/gemma-sea-lion-v4-27b-it`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/deepseek-ai/deepseek-math-7b-instruct model.

**POST** `/accounts/{account_id}/ai/run/@cf/deepseek-ai/deepseek-math-7b-instruct`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/deepseek-ai/deepseek-r1-distill-qwen-32b model.

**POST** `/accounts/{account_id}/ai/run/@cf/deepseek-ai/deepseek-r1-distill-qwen-32b`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/defog/sqlcoder-7b-2 model.

**POST** `/accounts/{account_id}/ai/run/@cf/defog/sqlcoder-7b-2`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/fblgit/una-cybertron-7b-v2-bf16 model.

**POST** `/accounts/{account_id}/ai/run/@cf/fblgit/una-cybertron-7b-v2-bf16`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/google/gemma-2b-it-lora model.

**POST** `/accounts/{account_id}/ai/run/@cf/google/gemma-2b-it-lora`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/google/gemma-3-12b-it model.

**POST** `/accounts/{account_id}/ai/run/@cf/google/gemma-3-12b-it`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/google/gemma-7b-it-lora model.

**POST** `/accounts/{account_id}/ai/run/@cf/google/gemma-7b-it-lora`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/ibm-granite/granite-4.0-h-micro model.

**POST** `/accounts/{account_id}/ai/run/@cf/ibm-granite/granite-4.0-h-micro`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta-llama/llama-2-7b-chat-hf-lora model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta-llama/llama-2-7b-chat-hf-lora`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-2-7b-chat-fp16 model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-2-7b-chat-fp16`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-2-7b-chat-int8 model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-2-7b-chat-int8`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3-8b-instruct model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3-8b-instruct`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3-8b-instruct-awq model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3-8b-instruct-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3.1-70b-instruct-fp8-fast model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3.1-70b-instruct-fp8-fast`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3.1-8b-instruct-awq model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3.1-8b-instruct-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3.1-8b-instruct-fp8 model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3.1-8b-instruct-fp8`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3.1-8b-instruct-fp8-fast model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3.1-8b-instruct-fp8-fast`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3.2-11b-vision-instruct model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3.2-11b-vision-instruct`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3.2-1b-instruct model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3.2-1b-instruct`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3.2-3b-instruct model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3.2-3b-instruct`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-3.3-70b-instruct-fp8-fast model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-3.3-70b-instruct-fp8-fast`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-4-scout-17b-16e-instruct model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-4-scout-17b-16e-instruct`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/meta/llama-guard-3-8b model.

**POST** `/accounts/{account_id}/ai/run/@cf/meta/llama-guard-3-8b`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/microsoft/phi-2 model.

**POST** `/accounts/{account_id}/ai/run/@cf/microsoft/phi-2`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/mistral/mistral-7b-instruct-v0.1 model.

**POST** `/accounts/{account_id}/ai/run/@cf/mistral/mistral-7b-instruct-v0.1`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/mistral/mistral-7b-instruct-v0.2-lora model.

**POST** `/accounts/{account_id}/ai/run/@cf/mistral/mistral-7b-instruct-v0.2-lora`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/mistralai/mistral-small-3.1-24b-instruct model.

**POST** `/accounts/{account_id}/ai/run/@cf/mistralai/mistral-small-3.1-24b-instruct`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/openai/gpt-oss-120b model.

**POST** `/accounts/{account_id}/ai/run/@cf/openai/gpt-oss-120b`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/openai/gpt-oss-20b model.

**POST** `/accounts/{account_id}/ai/run/@cf/openai/gpt-oss-20b`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/openchat/openchat-3.5-0106 model.

**POST** `/accounts/{account_id}/ai/run/@cf/openchat/openchat-3.5-0106`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/qwen/qwen1.5-0.5b-chat model.

**POST** `/accounts/{account_id}/ai/run/@cf/qwen/qwen1.5-0.5b-chat`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/qwen/qwen1.5-1.8b-chat model.

**POST** `/accounts/{account_id}/ai/run/@cf/qwen/qwen1.5-1.8b-chat`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/qwen/qwen1.5-14b-chat-awq model.

**POST** `/accounts/{account_id}/ai/run/@cf/qwen/qwen1.5-14b-chat-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/qwen/qwen1.5-7b-chat-awq model.

**POST** `/accounts/{account_id}/ai/run/@cf/qwen/qwen1.5-7b-chat-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/qwen/qwen2.5-coder-32b-instruct model.

**POST** `/accounts/{account_id}/ai/run/@cf/qwen/qwen2.5-coder-32b-instruct`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/qwen/qwen3-30b-a3b-fp8 model.

**POST** `/accounts/{account_id}/ai/run/@cf/qwen/qwen3-30b-a3b-fp8`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/qwen/qwq-32b model.

**POST** `/accounts/{account_id}/ai/run/@cf/qwen/qwq-32b`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/thebloke/discolm-german-7b-v1-awq model.

**POST** `/accounts/{account_id}/ai/run/@cf/thebloke/discolm-german-7b-v1-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/tiiuae/falcon-7b-instruct model.

**POST** `/accounts/{account_id}/ai/run/@cf/tiiuae/falcon-7b-instruct`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/tinyllama/tinyllama-1.1b-chat-v1.0 model.

**POST** `/accounts/{account_id}/ai/run/@cf/tinyllama/tinyllama-1.1b-chat-v1.0`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/google/gemma-7b-it model.

**POST** `/accounts/{account_id}/ai/run/@hf/google/gemma-7b-it`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/mistral/mistral-7b-instruct-v0.2 model.

**POST** `/accounts/{account_id}/ai/run/@hf/mistral/mistral-7b-instruct-v0.2`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/nexusflow/starling-lm-7b-beta model.

**POST** `/accounts/{account_id}/ai/run/@hf/nexusflow/starling-lm-7b-beta`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/nousresearch/hermes-2-pro-mistral-7b model.

**POST** `/accounts/{account_id}/ai/run/@hf/nousresearch/hermes-2-pro-mistral-7b`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/thebloke/deepseek-coder-6.7b-base-awq model.

**POST** `/accounts/{account_id}/ai/run/@hf/thebloke/deepseek-coder-6.7b-base-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/thebloke/deepseek-coder-6.7b-instruct-awq model.

**POST** `/accounts/{account_id}/ai/run/@hf/thebloke/deepseek-coder-6.7b-instruct-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/thebloke/llama-2-13b-chat-awq model.

**POST** `/accounts/{account_id}/ai/run/@hf/thebloke/llama-2-13b-chat-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/thebloke/mistral-7b-instruct-v0.1-awq model.

**POST** `/accounts/{account_id}/ai/run/@hf/thebloke/mistral-7b-instruct-v0.1-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/thebloke/neural-chat-7b-v3-1-awq model.

**POST** `/accounts/{account_id}/ai/run/@hf/thebloke/neural-chat-7b-v3-1-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/thebloke/openhermes-2.5-mistral-7b-awq model.

**POST** `/accounts/{account_id}/ai/run/@hf/thebloke/openhermes-2.5-mistral-7b-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @hf/thebloke/zephyr-7b-beta-awq model.

**POST** `/accounts/{account_id}/ai/run/@hf/thebloke/zephyr-7b-beta-awq`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```