Images are a creation primitive in Naive API v2. Two tools cover what an agent typically needs: AI image generation for original visuals (FLUX, Stable Diffusion, Recraft), and stock photo search for free, license-clean photography. Both are identity-aware and billing-integrated.
CLI First
Generating Images
The generate_images tool submits an async image generation job. The input object supports any model-specific parameters.
Response (202):
Parameters (Common)
FLUX Pro v1.1 does NOT support guidance_scale or num_inference_steps. Use FLUX Schnell or Dev if you need these.
Checking Status
Poll until the job completes:
Response (completed):
Cost
Image generation pricing is dynamic — based on the model’s per-unit cost, converted to credits at $0.05/credit. Preview costs before submitting:
Available Models
Use GET /v1/images/models to see the full dynamically-fetched list. Common models:
Stock Photo Search
Search free stock photos — no credits charged, no generation wait.
Response:
Parameters
Prompt Tips
Marketing Assets
Social Media
Logos & Icons
For logos, always specify “no text” and “white background”. Text in AI-generated images is often garbled. Add text separately.
Error Handling
When to Use Each
Typical Workflow