Q12: OpenAI Image Generation JSON Builder
Build a JSON request for OpenAI's image generation API
1
How to Submit Your Answer
  1. Find the image prompt in your question (after "Use the following prompt to generate the image:")
  2. Paste the exact image prompt below
  3. Select the required options from the dropdowns
  4. Click Copy on the generated JSON
  5. Paste the JSON into the answer field on the exam website
  6. Click Check to submit your answer
2
Configure Your Request
3
Generated JSON

✅ Make sure to copy the entire JSON, including all curly braces

{
  "model": "gpt-image-1",
  "prompt": "A sample image prompt",
  "n": 1,
  "size": "256x256",
  "response_format": "b64_json"
}