API reference

API reference · Account

Make a public link to a take

POST/api/studio/sharesSigned in session

One ready clip the account keeps, by its stored id or by the job that made it, with the prompt and model words the page shows. A second call for the same take answers the live link. A file whose copy is still being made is 409 content_not_ready, one whose copy could not be made 409 content_failed, a picture or a sound 400 not_a_take, past 500 live links 409 too_many_shares. A 404 with code storage_off while stored media is switched off (ANTIMATTER_STUDIO_STORAGE). The signed in account; same origin for a write.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
asset_idstring
job_idstring
promptstringAt most 2000 characters.
modelstringAt most 200 characters.
titlestringAt most 100 characters.
settingsobject
settings.modelstring
settings.camerastring
settings.lookstring
settings.secondsnumber
settings.aspectstring

Example

{
  "prompt": "Say hello in five words.",
  "model": "antimatter/auto"
}

Answer 200

The live link this take already had.

Fields of the 200 answer
FieldTypeWhat it is
idrequiredstring
objectrequiredstringOne of "studio.share".
asset_idrequiredstring
job_idrequiredstring or nullThe job that made the take, when a job did.
doc_asset_idrequiredstring or nullThe editor's own asset id the file was uploaded under, when one was named.
promptrequiredstring or null
modelrequiredstring or null
titlerequiredstring or nullThe title the sharer gave the link, on its page and its card.
settingsrequiredobject or nullThe take's settings, which a remix from the public feed starts from.
settings.modelstring
settings.camerastring
settings.lookstring
settings.secondsnumber
settings.aspectstring
posterrequiredbooleanA poster frame is kept for the link card.
listed_atrequiredinteger or nullListed in the public feed since (unix seconds), by the sharer's choice.
hiddenrequiredbooleanThe operator hid the listing from the feed.
viewsrequiredintegerVisitors who watched it from the feed or its page, each once a UTC day.
urlrequiredstringThe page's path on this origin, /studio/share/{id}.
created_atrequiredinteger
revoked_atrequiredinteger or null

Answer 201

The link.

Fields of the 201 answer
FieldTypeWhat it is
idrequiredstring
objectrequiredstringOne of "studio.share".
asset_idrequiredstring
job_idrequiredstring or nullThe job that made the take, when a job did.
doc_asset_idrequiredstring or nullThe editor's own asset id the file was uploaded under, when one was named.
promptrequiredstring or null
modelrequiredstring or null
titlerequiredstring or nullThe title the sharer gave the link, on its page and its card.
settingsrequiredobject or nullThe take's settings, which a remix from the public feed starts from.
settings.modelstring
settings.camerastring
settings.lookstring
settings.secondsnumber
settings.aspectstring
posterrequiredbooleanA poster frame is kept for the link card.
listed_atrequiredinteger or nullListed in the public feed since (unix seconds), by the sharer's choice.
hiddenrequiredbooleanThe operator hid the listing from the feed.
viewsrequiredintegerVisitors who watched it from the feed or its page, each once a UTC day.
urlrequiredstringThe page's path on this origin, /studio/share/{id}.
created_atrequiredinteger
revoked_atrequiredinteger or null

Errors

  • 400OpenAI shaped error.
  • 401OpenAI shaped error.
  • 403OpenAI shaped error.
  • 404OpenAI shaped error.
  • 409OpenAI shaped error.
  • 429OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter