Search + K

Command Palette

Search for a command to run...

Sign In

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

POST /accounts/{account_id}/ai/run/@cf/meta/llama-3.2-1b-instruct
Copy endpoint
https://api.cloudflare.com/client/v4

Parameters

path Path Parameters

Name Type
account_id required
string

query Query Parameters

Name Type
queueRequest
string

Request Body

application/json
{
frequency_penalty?: number;
lora?: string;
max_tokens?: number;
presence_penalty?: number;
prompt: string;
raw?: boolean;
repetition_penalty?: number;
response_format?: { json_schema?: unknown;type?: "json_object" | "json_schema"; };
seed?: number;
stream?: boolean;
temperature?: number;
top_k?: number;
top_p?: number;
}
| {
frequency_penalty?: number;
functions?: { code: string;name: string; }[];
max_tokens?: number;
messages: { content: string;role: string; }[];
presence_penalty?: number;
raw?: boolean;
repetition_penalty?: number;
response_format?: { json_schema?: unknown;type?: "json_object" | "json_schema"; };
seed?: number;
stream?: boolean;
temperature?: number;
tools?: ({ description: string;name: string;parameters: { properties: { ... };required?: string[];type: string; }; } | { function: { description: string;name: string;parameters: { ... }; };type: string; })[];
top_k?: number;
top_p?: number;
}

Responses

200 application/json

Object with user data.

{}

Client Errors

400 application/json

Bad request

{ errors: { code: string;message: string; }[];result: {};success: boolean; }