AI texture / image
generate_textureCreate one AI image from a text prompt or reference image for sprites, flipbooks, emissive/UI textures, or concept art; returns a generation ID to poll.
Instructions
One AI image from a text prompt (optionally from a reference image): sprites, flipbooks, emissive or UI textures, concept images. No PBR maps: use pbr-material for tileable materials. Asynchronous: returns a generation id; poll get_generation. Spends credits (refunded automatically on failure). Typical time: 60 s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | chatgpt = GPT Image 2 (default), banana2 = Nano Banana 2. | chatgpt |
| prompt | Yes | What to draw. | |
| image_url | No | Optional public https reference image (image-to-image). | |
| resolution | No | 2k | |
| max_credits | Yes | Highest price the user accepted (from quote_generation). The call fails with confirmation_required if missing. | |
| aspect_ratio | No | e.g. 1:1, 16:9, 9:16. | 1:1 |
| idempotency_key | No | Optional. Same key = same generation, never charged twice. Default: derived from the parameters for 10 minutes; pass a new value to intentionally run the same prompt again. | |
| save_to_library | No | Optional. When the generation succeeds, publish it in the public 3DTexel community library and add it to the user's library (free). Only if the user asked for it. |