Create a model
Create a model from 1–10 reference images supplied as URLs or inline base64.
202 Accepted with a model id; poll
GET /models/{id}/status until completed.
Each of the 1–10 images is either an https url (downloaded server-side
under SSRF guards) or inline base64 + mime_type (image/jpeg, image/png,
or image/webp, ≤ 10 MB each). Requires the models.write scope.
Example: create a style model from URLs
url or base64 + mime_type, not both. For large
files, use the presigned upload flow
instead. category is one of style, object, person, setting.Authorizations
Organization API key as a bearer token: Authorization: Bearer samsa_sk_....
Headers
Body
POST /models body — inline base64 and/or https-URL reference images.
1 - 100"Acme Brand Style"
Model category — one of style, object, person, setting.
style, object, person, setting "style"
1-10 reference images, each a url or inline base64+mime_type.
1 - 10 elementsOptional free-text guidance for how to use the model.
8000"Use for hero banners and social posts."
Optional https webhook notified once on terminal status (signed per the webhook signature scheme; see the webhooks docs).
"https://example.com/webhooks/samsa"
Response
Successful Response
202 body for POST /models and POST /models/{id}/complete (ADR §7.1).
The created model's id — poll GET /models/{id}/status.
Initial status: pending (create) or processing (complete).
pending, processing, completed, failed "pending"
Credits the finished job will cost (model creation is free = 0).
0

