Skip to main content
POST
Fill a shot's picture

Authorizations

Authorization
string
header
required

An API key, created in Solara: the menu under your name, then API keys. Send it as Authorization: Bearer sol_live_…. It works while the workspace has agent access, within what its plan gives (the free plan included).

Headers

Idempotency-Key
string
required

The same key answers the first fill and costs nothing

Required string length: 1 - 128

Path Parameters

id
string
required
itemId
string
required

The shot's id, or a picture block's (an added item's id, u…)

Required string length: 1 - 128

Body

application/json
variant
string
required

The look being tried; picture-block for a picture block

Required string length: 1 - 64
async
boolean

Answer at once with status pending while a picture is generated; poll get-project-shot-fill. Without it the call waits for the picture.

clip
boolean

An AI clip for the shot's one media slot (media_slots) instead of a picture, always answered pending: poll get-project-shot-fill. It animates the shot's picture (a stock photo or a generated one) or, with query, is made from the words. Counts 1 toward the AI clips' caps (429 clip_limit); one its model turns down at once is free, at most 10 a video a UTC day (then 429 clip_refusal_limit); 422 ai_clips_off while the workspace has none; 402 ai_clips_plan_required while its plan has none (a free workspace: AI clips come with a paid plan; source stock still works). A clip that fails ends with clip_failure: no other model is tried

from
string

With clip: the asset id of the picture to animate (a stock photo or a generated picture of this video). Default: the shot's picture

Maximum string length: 128
media_slots
string[] | null

The picture slots it lacks (needsFill.media); ["picture"] for a picture block

Maximum array length: 6
model
enum<string>

With clip: the model that makes it, shown with the clip. Default: the video's clip_model, else gemini-omni-flash

Available options:
gemini-omni-flash,
minimax-h3-max,
minimax-h3-max-turbo
next
boolean

Try another: the next stored picture, no model call, not counted

query
string

The customer's own picture search (Ask AI); counted, and the model writes no search

Maximum string length: 80
source
enum<string>

With clip: ai (the default) makes an AI clip; stock finds another stock clip on Pexels in the video's frame, one the shot has not shown, with no model call, answered at once and never counted (notes no-clip and no-stock when there is none). With stock, query is the search; model and from are refused

Available options:
stock,
ai
span
object

A picture block's span: required when itemId is a block's id (the block need not be saved yet), refused for any other item. The picture is found or made from the words said over it, in the video's frame, as a shot's picture is (stock or generated, judged), and counts as one picture fill (D5); 422 picture_blocks_off while the workspace has no picture blocks. A block takes no text slot, clip, model, from or source (422)

text_slots
string[] | null

The text slots the shot lacks for it (needsFill.text)

Maximum array length: 6

Response

OK

assets
object[] | null
required

The pictures named, with signed URLs

limit
integer<int64>
required

Fills a video may use per day

used
integer<int64>
required

Fills this video has used today (D5)

clip_failure
object

Why an AI clip did not land, and with which model (never switched): reason is model-failed, model-refused, model-unavailable, deadline, judge-rejected, finish-failed, source-missing or ai-clips-off; detail one sentence saying it; counted whether it still counts toward the AI clip caps (a provider may bill it). The shot keeps what it showed

clips
object

An AI clip's fill: the video's AI clips today and the workspace's this month, against their caps

id
string

The fill's id: poll get-project-shot-fill with it while status is pending

kind
enum<string>

clip for an AI clip's fill; absent for a picture's

Available options:
clip
media
object

Asset ids per picture slot

notes
string[] | null

title-fallback: the titles are the shot's own words; no-picture: no picture landed; card: the shot shows its headline card, with why (no-stock, judge-rejected, provider-error, deadline, generation-limit); no-clip: an AI clip did not land, with why (as clip_failure.reason)

source
enum<string>

How the picture is got: generate ("Making a picture…"), stock ("Finding a picture…") or card (the headline card)

Available options:
generate,
stock,
card
status
enum<string>

pending while the picture is being made (async fills only)

Available options:
done,
pending
text
object

A title per text slot