1. Get an API key
Create a key in Workspace settings → API keys of the Argil app and export it:2. Generate an image
Prefer: wait=60 holds the response until the generation is final (up to 60 seconds), so most images come back finished in one call.
Response (trimmed)
API folder.
3. Animate it, get a webhook when done
Videos take one to ten minutes, so let Argil call you. Register your endpoint once; the response holds its signing secret, shown only this time:"status": "queued" and a Retry-After header. When the video is done, your endpoint receives a signed generation.succeeded event with the full generation (see Webhooks). Verify the signature before trusting it.
4. Put your character in a scene
List the characters made in Argil, then reference one by id and name it in the prompt:"plate": "front" brings one image of the character (@image1), so the kitchen photo is @image2. Without it, the element brings all its plates, each counted as an image. The same tags work on every model: see Inputs.
5. Check the price first
Sendmodel, mode and input to POST /v2/generations/estimate to get the price and whether your balance covers it, without creating a generation:
Next
Models
Every model, its modes, inputs and price.
Generations
Lifecycle, waiting, outputs, failures.
Library
Uploads, outputs and Argil elements.
Webhooks
Endpoints, signatures, retries.
