Generate Image
generate_imageCreate images with HalalGen (no human faces: people appear only as silhouettes, from behind, or not at all). 'Auto' uses GPTImage25Flare on paid plans and CF_Flux2Klein on the free plan. Free plan: CF_Flux2Klein and CF_Flux2Dev only. Returns the image URL; share it with the user. To change one of the user's own pictures, use edit_image instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Image model. Call list_models for costs. | Auto |
| prompt | Yes | What to create. Describe the scene, lighting, materials and mood. Avoid faces. Looks from HalalGen's templates can be asked for here too, for example one object seen from several camera angles, a faceless cartoon-style character, or exercise steps shown with silhouettes. | |
| quality | No | Used by GPT Image 2.5 only: hd costs ×1.2, ultra ×1.8. Flux Ultra and Flux 2.0 Pro are always ultra; other models are standard. | standard |
| is_private | No | Keep the image private in the user's Vault. | |
| num_images | No | How many images (paid plans: up to 4). | |
| aspect_ratio | No | Image shape. | 16:9 |
| relaxed_mode | No | Queue without spending credits. Iltizam and Ihsan plans only. | |
| movement_type | No | Optional camera framing hint added to the prompt. | |
| cinematic_style | No | Optional style preset added to the prompt. |