Need one visual model call instead?
For a single task such as OCR, visual Q&A, or detection, call a visual model directly. See the Models quickstart.
1. Get an API key
Create a key in the dashboard, then set it in your shell. Agent requests need a key.2. Install the SDK
3. Send your first task
choices[0].message.content, and the run cost is in the response. See Pricing.
Next steps
- Structured output: get JSON that matches your schema.
- Inputs: send documents, video, and audio.
- Output files: download the images and video an agent creates.
- Skills: save instructions and an output schema, and reuse them in any request.
- Agent execution: create a saved agent, run it on a file in the background, and read the result.
- API reference: every request and response field.