{
  "version": 1,
  "metadata": {
    "tags": [
      "prefix:openai-images",
      "provider:openai",
      "protocol:openai-images"
    ],
    "name": "openai-images/generates-an-image",
    "recordedAt": "2026-07-19T14:41:43.188Z"
  },
  "interactions": [
    {
      "transport": "http",
      "request": {
        "method": "POST",
        "url": "https://api.openai.com/v1/images/generations",
        "headers": {
          "content-type": "application/json"
        },
        "body": "{\"model\":\"gpt-image-1-mini\",\"prompt\":\"A simple flat black circle centered on a plain white background.\",\"size\":\"1024x1024\",\"quality\":\"low\",\"output_format\":\"jpeg\",\"output_compression\":10}"
      },
      "response": {
        "status": 200,
        "headers": {
          "content-type": "application/json"
        },
        "body": "{\n  \"created\": 1784472103,\n  \"background\": \"opaque\",\n  \"data\": [\n    {\n      \"b64_json\": \"[encoded data, 49664 characters]\"\n    }\n  ],\n  \"output_format\": \"jpeg\",\n  \"quality\": \"low\",\n  \"size\": \"1024x1024\",\n  \"usage\": {\n    \"input_tokens\": 18,\n    \"input_tokens_details\": {\n      \"image_tokens\": 0,\n      \"text_tokens\": 18\n    },\n    \"output_tokens\": 272,\n    \"output_tokens_details\": {\n      \"image_tokens\": 272,\n      \"text_tokens\": 0\n    },\n    \"total_tokens\": 290\n  }\n}"
      }
    }
  ]
}
