Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

user-agent
string | null

Body

application/json

Request payload for the OpenAI chat completions API for VLM Run agents.

messages
Message · object[]
required

Messages to complete

id
string

ID of the completion

model

VLM Run Agent model to use for completion. When omitted, the skill's vlmrun.yaml model is used; otherwise the agent default.

Available options:
vlmrun-orion-1,
vlmrun-orion-1:auto,
vlmrun-orion-1:fast,
vlmrun-orion-1:pro,
vlmrun-orion-2,
vlmrun-orion-2:auto,
vlmrun-orion-2:qwen3.6-35b-a3b,
vlmrun-orion-2:gemma4-26b-a4b,
vlmrun-orion-2:cosmos3-nano,
vlmrun-orion-2:kimi-2.6,
vlmrun-orion-2:kimi-k3,
vlmrun-orion-2:gpt-5.5,
vlmrun-orion-2:opus-4.8,
vlmrun-orion-2:muse-spark-1.1,
vlmrun-orion-2:grok-4.5,
vlmrun-orion-2:gemini-flash-3.6,
vlmrun-orion-2:fast,
vlmrun-orion-2:pro
max_tokens
integer
default:32768

Maximum number of tokens to generate

n
integer | null
default:1

Number of completions to generate

temperature
number
default:0

Temperature of the sampling distribution

top_p
number
default:1

Cumulative probability of parameter highest probability vocabulary tokens to keep for nucleus sampling

top_k
integer | null

Number of highest probability vocabulary tokens to keep for top-k-filtering

logprobs
integer | null

Include the log probabilities on the logprobs most likely tokens, as well the chosen tokens

stream
boolean
default:false

Whether to stream the response or not

tools
Tools · object[] | null

OpenAI-compatible client tool definitions. By default (tool_execution=client) the endpoint returns model tool_calls for the client to execute (OpenRouter / OpenAI / pydantic-ai protocol). Set tool_execution=hybrid to also enable server-side tools such as execute_code.

tool_choice

OpenAI-compatible tool_choice (none / auto / required / specific function). Only used when tools is set.

tool_execution
enum<string> | null

How tools are executed when tools is set. client (default): passthrough — all tool_calls returned to the caller. hybrid: server tools (see server_tools) run in-process; only client tool_calls are returned with finish_reason=tool_calls.

Available options:
client,
hybrid
server_tools
string[] | null

Server-owned tool names to inject and execute when tool_execution=hybrid. Defaults to ["execute_code"]. Unknown names are rejected.

preview

Preview card selection for the agent. Accepts: True to enable all known card types, a list[str] of card discriminator names (e.g. ["preview.image", "preview.grid"]) for a focused set, or False/None to disable structured preview output. When enabled, the agent streams <preview data='{...json...}'/> lines through vlmrun.log.print(...) for the chosen card types.

response_format
JSONSchemaResponseFormat · object

Response format for JSON schema mode as per Fireworks AI specification.

service_tier
enum<string> | null

Delivery tier for the request. 'standard'/'default' uses baseline rates, 'flex' applies a 50% discount with higher latency, and 'priority' applies a 1.8x premium for highest reliability. When omitted (or 'auto'), the server default ('standard') applies — opt into 'flex'/'priority' explicitly.

Available options:
auto,
default,
standard,
flex,
priority
session_id
string

Session UUID for persisting the chat history

session_token
string | null

Client-minted session token for IDOR protection (base64url, >=256-bit)

metadata
Metadata · object | null

Additional metadata for the request (e.g., dataset_name, experiment_id, etc.)

skills
AgentSkill · object[] | null

List of agent skills to enable for this request.

Response

Successful Response