generate_image
Generate 1–12 images (text-to-image, or edit/combine images passed as VerseIn media URLs). Spends the user's coins: call estimate_cost first and tell the user the price. Calls above the confirmation threshold return needs_confirmation with a confirmation_token; ask the user, then call again with it. Returns task ids; follow them with get_tasks. Never use it to swap faces or to put a real person's face or identity onto someone else; such requests are refused. Generating through an AI assistant is charged in VerseIn coins. Unlimited-plan allowances do not apply here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | 1 to 12 generations, each a complete set of settings | |
| request_id | No | your id for this call; retrying with the same id never charges twice. Use a new id to intentionally repeat identical settings | |
| max_total_coins | No | the most this request_id may charge in total across all attempts: coins already charged for its earlier tasks plus the price of what is still to submit. Send the exact total the user agreed to; if the request total would exceed it, nothing is submitted and needs_confirmation returns the new request total | |
| confirmation_token | No | the confirmation_token a needs_confirmation answer returned, passed back once the user agreed to that price |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | present only when the call failed | |
| tasks | No | ||
| failed | No | ||
| balance | No | balance after submitting | |
| declined | No | true when the user declined the confirmation form; nothing was submitted or charged | |
| next_action | No | ||
| total_cost_coins | Yes |