AI & LLM
AI Image Generation Request & Response JSON Example
A JSON example of a text-to-image generation request and response — includes the prompt, size, model, and returned image URLs. Copy-ready for DALL·E and image generation APIs.
Field Reference
createdrequiredintegerUnix timestamp of generationdatarequiredarray<object>One entry per generated image (n controls how many)data[].urloptionalstringTemporary URL to the image; expires, so download promptly. Absent if b64_json was requesteddata[].b64_jsonoptionalstringBase64-encoded image bytes when response_format is b64_jsondata[].revised_promptoptionalstringThe prompt after the model's automatic rewritingVariants
Generation requestDescribe the image, choose a size and how many to generate.
Common Use Cases
- →Generating marketing images, avatars, or icons from text prompts
- →Building a creative tool that turns descriptions into pictures
- →Producing image variations or assets programmatically
image generationdall-etext to imageai imagesgenerative ai
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
AI & LLMSpeech-to-Text Transcription (Whisper)Speech-to-text response with text, language, duration, and timestamped segments.AI & LLMOpenAI Chat Completion ResponseOpenAI Chat Completions API response with choices, message, finish_reason, and usage.AI & LLMLLM Structured Output (JSON Schema)Structured output request with a JSON Schema and the model's schema-valid response.