Skip to main content

1. Get an API key

Create a key in Workspace settings → API keys of the Argil app and export it:
Generating needs an active Argil plan, and spends the same credits as the playground.

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)
The image is also in your library, in its 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:
Then create the generation and keep its id. The output of step 2 is the first frame: no download, no upload.
The response comes back at once with "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.
No public endpoint yet? Poll with GET /v2/generations/{id} and Prefer: wait=60: about ten calls for a ten-minute video.

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

Send model, 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.