Quickstart
Make your first REST API call in about two minutes. For application code, use the JavaScript and TypeScript SDK; for terminal commands, use the CLI. To use Ava from ChatGPT or Claude, skip to Connect your AI app: no key needed.
Choose what Ava should plan
A campaign: reuse or create the campaign with its brief/objectives, then
plan_get→plan_run→concept_list→ approval →creative_produce. Keep the same campaign id. Creating a campaign alone does not run its planner.One complete video:
project_create→project_askuses Studio's content-planning agent for original videos and clones. Plan withgenerate:false, media_credit_limit:0(AI usage is charged), then continue in the same project with approved generation and export.Written briefs only:
draft_briefssaves into the separate “From your agent” draft container. It does not plan the selected campaign, and its briefs cannot be produced withcreative_produce.
The REST walkthrough below demonstrates standalone research and written briefs. Campaign planning and media generation need their corresponding permissions and spending approval; the walkthrough's key and budget cover only its listed calls.
1. Create an API key
In Ava Studio, open Settings > Developers.
Click Create key and give it a name (for example "My script"). Keys start with Read only. Choose Custom and enable Research and Write drafts for this walkthrough. Also enable Edit brands if you need to create a brand.
Optionally set a monthly credit limit for the key, for example 250 credits for this walkthrough.
Copy the key. It starts with
ava_live_and is shown only once.
Keep the key secret: anyone who has it can spend your credits. Store it in an environment variable rather than in your code:
read -rs AVA_API_KEY && export AVA_API_KEY # paste the key, press Enter2. Check the key
curl -X POST https://mcp.avastudio.com/v1/whoami \
-H "x-api-key: $AVA_API_KEY"You get your account, credit balance and brands:
If brands is empty, save your supplied details without a website using brand_create { "profile": { "name": "Acme", "brief": "Coffee for offices" } } (free; only the name is required). A website is optional inside profile. Or use brand_create { "url": "https://example.com" } for website research (40 credits, eligible first-brand allowance applies).
Both return a job_id: poll jobs_get until succeeded, then use the saved result.brand_id. There is no separate save step. brand_update saves later edits immediately; brand_export only makes a portable copy.
3. Ask for research
Every tool is a POST to /v1/<tool> with its input as JSON:
The answer lists what is trending, with example videos and credits_charged: 1.
4. Run a longer task
Drafting briefs takes a little while, so draft_briefs returns a job instead of waiting:
credits_held is the most the job can cost. You are charged what it actually uses (typically about 25 credits per brief) and the rest is released.
Check it every few seconds until status is succeeded or failed:
When it succeeds, result holds the briefs, and they also appear in Ava Studio in your brand's "From your agent" campaign.
The idempotency_key makes retries safe: sending the same request again returns the same job instead of drafting (and charging) twice. See Jobs, retries and errors.
Next
Connect your AI app to let an assistant use all the tools for you.
Browse the tool reference.
GET https://mcp.avastudio.com/v1/toolslists the tools your key can call, with their input schemas.