Make one picture
soclo_image_generateSpends credits: makes one new GPT Image picture from your scene prompt and optional reviewed reference photos, without Soclo AI planning. Quote first with soclo_image_quote, then pass expectedCredits (including an owner-exempt 0), pricingVersion and ownerApprovedPrice:true after the owner approves the price. Photo edits, background removal and upscaling use their own tools. Every generated picture is saved to the Soclo Library and returns libraryAssetId and resultUrl, never raw bytes. Premium is the default tier; Standard is used if chosen. Supply a UUID clientRequestId before calling: reconcile a lost result or unknown charge with soclo_image_recover, and on 202 image_result_pending re-send the same request id (an exact replay returns the same asset with no second charge). Does not attach to a plan or publish. For reference photos, pass reviewed private locators in order from soclo_photo_reference_prepare or soclo_brand_photo_reference; never falls back to text-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | GPT Image for a new picture. | |
| prompt | No | Required for generate: the host-authored scene text, sent directly to image generation. | |
| imageUrls | No | For generate: up to ten distinct selected, reviewed HTTPS private evidence locators, in intended order. Ordinary public Library URLs cannot prove reference use. | |
| aspectRatio | No | Defaults to 1:1 for statics. | |
| pictureTier | No | For generate: premium is the default; use standard only if the owner chooses it. Read the authenticated native quote for the exact account price. | |
| pricingVersion | No | From the authenticated native quote for this picture or enhancement; frames uses its own quote. | |
| clientRequestId | Yes | Required before generate: one stable UUID per picture purchase. Required before frames; recover and frames_result read the original UUID without a new render. Never retry an unknown outcome automatically or mint a replacement ID to bypass a duplicate refusal. | |
| expectedCredits | Yes | Required: use the exact authenticated native quote, including zero only when quoted for the owner-exempt account. Frames uses its own existing quote. | |
| ownerApprovedPrice | Yes | Required true for generate only after the account owner has seen the tier price and approved this single picture purchase. A retry spend needs a new yes. |