{
  "version": 1,
  "metadata": {
    "tags": [
      "prefix:openai-responses-images",
      "provider:openai",
      "protocol:openai-responses"
    ],
    "name": "openai-responses-images/generates-and-edits-an-image-with-the-hosted-tool",
    "recordedAt": "2026-07-19T14:57:16.284Z"
  },
  "interactions": [
    {
      "transport": "http",
      "request": {
        "method": "POST",
        "url": "https://api.openai.com/v1/responses",
        "headers": {
          "content-type": "application/json"
        },
        "body": "{\"model\":\"gpt-5-mini\",\"input\":[{\"role\":\"user\",\"content\":[{\"type\":\"input_text\",\"text\":\"Generate a simple flat black triangle centered on a plain white background.\"}]}],\"tools\":[{\"type\":\"image_generation\",\"action\":\"auto\",\"output_compression\":10,\"output_format\":\"jpeg\",\"partial_images\":0,\"quality\":\"low\",\"size\":\"1024x1024\"}],\"tool_choice\":{\"type\":\"image_generation\"},\"store\":false,\"include\":[\"reasoning.encrypted_content\"],\"reasoning\":{\"effort\":\"medium\",\"summary\":\"auto\"},\"stream\":true}"
      },
      "response": {
        "status": 200,
        "headers": {
          "content-type": "text/event-stream; charset=utf-8"
        },
        "body": "event: response.created\ndata: {\"type\":\"response.created\",\"response\":{\"id\":\"resp_028d7fb658c136b3016a5ce59cd0e8819f804427824478bc8c\",\"object\":\"response\",\"created_at\":1784472988,\"status\":\"in_progress\",\"background\":false,\"completed_at\":null,\"error\":null,\"frequency_penalty\":0.0,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"model\":\"gpt-5-mini-2025-08-07\",\"moderation\":null,\"output\":[],\"parallel_tool_calls\":true,\"presence_penalty\":0.0,\"previous_response_id\":null,\"prompt_cache_key\":null,\"prompt_cache_retention\":\"in_memory\",\"reasoning\":{\"context\":\"current_turn\",\"effort\":\"medium\",\"mode\":\"standard\",\"summary\":\"detailed\"},\"safety_identifier\":null,\"service_tier\":\"auto\",\"store\":false,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"tool_choice\":{\"type\":\"image_generation\"},\"tool_usage\":{\"image_gen\":{\"input_tokens\":0,\"input_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"output_tokens\":0,\"output_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"total_tokens\":0},\"web_search\":{\"num_requests\":0}},\"tools\":[{\"type\":\"image_generation\",\"background\":\"auto\",\"model\":\"gpt-image-2\",\"moderation\":\"auto\",\"n\":1,\"output_compression\":10,\"output_format\":\"jpeg\",\"quality\":\"low\",\"size\":\"1024x1024\"}],\"top_logprobs\":0,\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"sequence_number\":0}\n\nevent: response.in_progress\ndata: {\"type\":\"response.in_progress\",\"response\":{\"id\":\"resp_028d7fb658c136b3016a5ce59cd0e8819f804427824478bc8c\",\"object\":\"response\",\"created_at\":1784472988,\"status\":\"in_progress\",\"background\":false,\"completed_at\":null,\"error\":null,\"frequency_penalty\":0.0,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"model\":\"gpt-5-mini-2025-08-07\",\"moderation\":null,\"output\":[],\"parallel_tool_calls\":true,\"presence_penalty\":0.0,\"previous_response_id\":null,\"prompt_cache_key\":null,\"prompt_cache_retention\":\"in_memory\",\"reasoning\":{\"context\":\"current_turn\",\"effort\":\"medium\",\"mode\":\"standard\",\"summary\":\"detailed\"},\"safety_identifier\":null,\"service_tier\":\"auto\",\"store\":false,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"tool_choice\":{\"type\":\"image_generation\"},\"tool_usage\":{\"image_gen\":{\"input_tokens\":0,\"input_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"output_tokens\":0,\"output_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"total_tokens\":0},\"web_search\":{\"num_requests\":0}},\"tools\":[{\"type\":\"image_generation\",\"background\":\"auto\",\"model\":\"gpt-image-2\",\"moderation\":\"auto\",\"n\":1,\"output_compression\":10,\"output_format\":\"jpeg\",\"quality\":\"low\",\"size\":\"1024x1024\"}],\"top_logprobs\":0,\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"sequence_number\":1}\n\nevent: response.output_item.added\ndata: {\"type\":\"response.output_item.added\",\"item\":{\"id\":\"rs_028d7fb658c136b3016a5ce59d154c819f85755db041801f6a\",\"type\":\"reasoning\",\"content\":[],\"encrypted_content\":\"gAAAAABqXOWdHS2Caj6M3NNE0u_5cAteF-ddZxQ_bD8o8hg48tu51gsxk9_NWz6Vjzcj7cgCJb_qHopoZdYXt8mAlpreQsxAUKu9WLxCfgsmLuDoZDE38gl6HA7xz-YTW8VOWunsj3PF1MJZFzYIjJuZtPiVU8JtP_vabifALFe5cQlqLI3zkNHEbRdDy4hncruHJoAstZcpaVUSkqI_mivfCFYvW6qfqLquHZJx13KQEh-mpALPsJGKfg7r2t0U3z6BTxeCcuYwlvUQIHYBbABysMv_OCc-xXcsRTalMh41EeorMOIoz-CQh_QCQAxbfo3nMIdCJH4KoR8bjd4n8wu_Rz0wu_t5K6fBrO4ksr8pEY1EXBG_qc_XfM4OWQjQ2y6U3q41pmGZ4Ywh7FKfz0cp2J08BbwB1eBb7WvmZWaevUMNV5jtoU61tswFJdUoLDxJ2u_n_BTv9YLhXa3xlU0ZnsoVzfwuC5l8JrdpCMERfFdpWVplLxftZwFj5vgGtYH0buosjyEWeoN8COn-zUs7f7EDHOg_vICo3b4vF8lox2REJnC9Kr0OJI4FqyTOs_VDLCT3hUWG3oHseCmLKJbCD5JYkmmp9TUu64bpzJR1isMbrCBEpwKU3px-pc33HeayLsdC6kMCtN0eJ6G7FwElV6tdmxGyAX2zGzgWsMhvgCwuLrDLDkP-2K2z9jKFhXO5iXZqsERY08RGX0_utEFJOXD4tFDdrwlOMNyVzRtTaGGuhajhFqMYe_urqDG1YljAlRleDy5ALNZHGXu_Q78c3PMfBkAxGtVKqX5gTCd2JpuYTiEsrMktqj8Kqri9asQ65Bye6IOtmKjXOXVioDV7USsMDJ72f-nIpvWsdgMkhR1WG786qBwShudSk0KRyIMMMGrNVuMBoIhY1_cyLd2zLgClH5U_aWR5qngSOX8xquak4KBQFp8=\",\"summary\":[]},\"output_index\":0,\"sequence_number\":2}\n\nevent: response.output_item.done\ndata: {\"type\":\"response.output_item.done\",\"item\":{\"id\":\"rs_028d7fb658c136b3016a5ce59d154c819f85755db041801f6a\",\"type\":\"reasoning\",\"content\":[],\"encrypted_content\":\"[encoded data, 9080 characters]\",\"summary\":[]},\"output_index\":0,\"sequence_number\":3}\n\nevent: response.output_item.added\ndata: {\"type\":\"response.output_item.added\",\"item\":{\"id\":\"ig_028d7fb658c136b3016a5ce5a91890819fa161dd35e5e7c1b1\",\"type\":\"image_generation_call\",\"status\":\"in_progress\"},\"output_index\":1,\"sequence_number\":4}\n\nevent: response.image_generation_call.in_progress\ndata: {\"type\":\"response.image_generation_call.in_progress\",\"item_id\":\"ig_028d7fb658c136b3016a5ce5a91890819fa161dd35e5e7c1b1\",\"output_index\":1,\"sequence_number\":5}\n\nevent: response.image_generation_call.generating\ndata: {\"type\":\"response.image_generation_call.generating\",\"item_id\":\"ig_028d7fb658c136b3016a5ce5a91890819fa161dd35e5e7c1b1\",\"output_index\":1,\"sequence_number\":6}\n\nevent: response.image_generation_call.partial_image\ndata: {\"type\":\"response.image_generation_call.partial_image\",\"background\":\"opaque\",\"item_id\":\"ig_028d7fb658c136b3016a5ce5a91890819fa161dd35e5e7c1b1\",\"output_format\":\"jpeg\",\"output_index\":1,\"partial_image_b64\":\"[encoded data, 44020 characters]\",\"partial_image_index\":0,\"quality\":\"low\",\"sequence_number\":7,\"size\":\"1024x1024\"}\n\nevent: response.output_item.done\ndata: {\"type\":\"response.output_item.done\",\"item\":{\"id\":\"ig_028d7fb658c136b3016a5ce5a91890819fa161dd35e5e7c1b1\",\"type\":\"image_generation_call\",\"status\":\"generating\",\"action\":\"generate\",\"background\":\"opaque\",\"output_format\":\"jpeg\",\"quality\":\"low\",\"result\":\"[encoded data, 44020 characters]\",\"revised_prompt\":\"Simple flat solid black triangle centered on a plain white background. Minimal vector-style graphic with no shading, gradients, outlines, or textures. Triangle pointing upward (base at bottom), crisp edges, centered both vertically and horizontally, occupying about 40% of the image width. High resolution, clean white background.\",\"size\":\"1024x1024\"},\"output_index\":1,\"sequence_number\":8}\n\nevent: response.output_item.added\ndata: {\"type\":\"response.output_item.added\",\"item\":{\"id\":\"msg_028d7fb658c136b3016a5ce5b662b8819fa19ff40122f1c07a\",\"type\":\"message\",\"status\":\"in_progress\",\"content\":[],\"role\":\"assistant\"},\"output_index\":2,\"sequence_number\":9}\n\nevent: response.content_part.added\ndata: {\"type\":\"response.content_part.added\",\"content_index\":0,\"item_id\":\"msg_028d7fb658c136b3016a5ce5b662b8819fa19ff40122f1c07a\",\"output_index\":2,\"part\":{\"type\":\"output_text\",\"annotations\":[],\"logprobs\":[],\"text\":\"\"},\"sequence_number\":10}\n\nevent: response.output_text.done\ndata: {\"type\":\"response.output_text.done\",\"content_index\":0,\"item_id\":\"msg_028d7fb658c136b3016a5ce5b662b8819fa19ff40122f1c07a\",\"logprobs\":[],\"output_index\":2,\"sequence_number\":11,\"text\":\"\"}\n\nevent: response.content_part.done\ndata: {\"type\":\"response.content_part.done\",\"content_index\":0,\"item_id\":\"msg_028d7fb658c136b3016a5ce5b662b8819fa19ff40122f1c07a\",\"output_index\":2,\"part\":{\"type\":\"output_text\",\"annotations\":[],\"logprobs\":[],\"text\":\"\"},\"sequence_number\":12}\n\nevent: response.output_item.done\ndata: {\"type\":\"response.output_item.done\",\"item\":{\"id\":\"msg_028d7fb658c136b3016a5ce5b662b8819fa19ff40122f1c07a\",\"type\":\"message\",\"status\":\"completed\",\"content\":[{\"type\":\"output_text\",\"annotations\":[],\"logprobs\":[],\"text\":\"\"}],\"role\":\"assistant\"},\"output_index\":2,\"sequence_number\":13}\n\nevent: response.completed\ndata: {\"type\":\"response.completed\",\"response\":{\"id\":\"resp_028d7fb658c136b3016a5ce59cd0e8819f804427824478bc8c\",\"object\":\"response\",\"created_at\":1784472988,\"status\":\"completed\",\"background\":false,\"completed_at\":1784473014,\"error\":null,\"frequency_penalty\":0.0,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"model\":\"gpt-5-mini-2025-08-07\",\"moderation\":null,\"output\":[{\"id\":\"rs_028d7fb658c136b3016a5ce59d154c819f85755db041801f6a\",\"type\":\"reasoning\",\"content\":[],\"encrypted_content\":\"[encoded data, 9080 characters]\",\"summary\":[]},{\"id\":\"ig_028d7fb658c136b3016a5ce5a91890819fa161dd35e5e7c1b1\",\"type\":\"image_generation_call\",\"status\":\"generating\",\"action\":\"generate\",\"background\":\"opaque\",\"output_format\":\"jpeg\",\"quality\":\"low\",\"result\":\"[encoded data, 44020 characters]\",\"revised_prompt\":\"Simple flat solid black triangle centered on a plain white background. Minimal vector-style graphic with no shading, gradients, outlines, or textures. Triangle pointing upward (base at bottom), crisp edges, centered both vertically and horizontally, occupying about 40% of the image width. High resolution, clean white background.\",\"size\":\"1024x1024\"},{\"id\":\"msg_028d7fb658c136b3016a5ce5b662b8819fa19ff40122f1c07a\",\"type\":\"message\",\"status\":\"completed\",\"content\":[{\"type\":\"output_text\",\"annotations\":[],\"logprobs\":[],\"text\":\"\"}],\"role\":\"assistant\"}],\"parallel_tool_calls\":true,\"presence_penalty\":0.0,\"previous_response_id\":null,\"prompt_cache_key\":null,\"prompt_cache_retention\":\"in_memory\",\"reasoning\":{\"context\":\"current_turn\",\"effort\":\"medium\",\"mode\":\"standard\",\"summary\":\"detailed\"},\"safety_identifier\":null,\"service_tier\":\"default\",\"store\":false,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"tool_choice\":{\"type\":\"image_generation\"},\"tool_usage\":{\"image_gen\":{\"input_tokens\":67,\"input_tokens_details\":{\"image_tokens\":0,\"text_tokens\":67},\"output_tokens\":196,\"output_tokens_details\":{\"image_tokens\":196,\"text_tokens\":0},\"total_tokens\":263},\"web_search\":{\"num_requests\":0}},\"tools\":[{\"type\":\"image_generation\",\"background\":\"auto\",\"model\":\"gpt-image-2\",\"moderation\":\"auto\",\"n\":1,\"output_compression\":10,\"output_format\":\"jpeg\",\"quality\":\"low\",\"size\":\"1024x1024\"}],\"top_logprobs\":0,\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":2853,\"input_tokens_details\":{\"cache_write_tokens\":0,\"cached_tokens\":0},\"output_tokens\":1256,\"output_tokens_details\":{\"reasoning_tokens\":1152},\"total_tokens\":4109},\"user\":null,\"metadata\":{}},\"sequence_number\":14}\n\n"
      }
    },
    {
      "transport": "http",
      "request": {
        "method": "POST",
        "url": "https://api.openai.com/v1/responses",
        "headers": {
          "content-type": "application/json"
        },
        "body": "{\"model\":\"gpt-5-mini\",\"input\":[{\"role\":\"user\",\"content\":[{\"type\":\"input_text\",\"text\":\"Generate a simple flat black triangle centered on a plain white background.\"}]},{\"type\":\"reasoning\",\"summary\":[],\"encrypted_content\":\"[encoded data, 9080 characters]\"},{\"role\":\"user\",\"content\":[{\"type\":\"input_image\",\"image_url\":\"data:image/jpeg;base64,[encoded data, 44020 characters]\"}]},{\"role\":\"user\",\"content\":[{\"type\":\"input_text\",\"text\":\"Now make the triangle blue.\"}]}],\"tools\":[{\"type\":\"image_generation\",\"action\":\"auto\",\"output_compression\":10,\"output_format\":\"jpeg\",\"partial_images\":0,\"quality\":\"low\",\"size\":\"1024x1024\"}],\"tool_choice\":{\"type\":\"image_generation\"},\"store\":false,\"include\":[\"reasoning.encrypted_content\"],\"reasoning\":{\"effort\":\"medium\",\"summary\":\"auto\"},\"stream\":true}"
      },
      "response": {
        "status": 200,
        "headers": {
          "content-type": "text/event-stream; charset=utf-8"
        },
        "body": "event: response.created\ndata: {\"type\":\"response.created\",\"response\":{\"id\":\"resp_0a372a7fcba6b284016a5ce5b6a12081a1be0e5db6b7067a0b\",\"object\":\"response\",\"created_at\":1784473014,\"status\":\"in_progress\",\"background\":false,\"completed_at\":null,\"error\":null,\"frequency_penalty\":0.0,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"model\":\"gpt-5-mini-2025-08-07\",\"moderation\":null,\"output\":[],\"parallel_tool_calls\":true,\"presence_penalty\":0.0,\"previous_response_id\":null,\"prompt_cache_key\":null,\"prompt_cache_retention\":\"in_memory\",\"reasoning\":{\"context\":\"current_turn\",\"effort\":\"medium\",\"mode\":\"standard\",\"summary\":\"detailed\"},\"safety_identifier\":null,\"service_tier\":\"auto\",\"store\":false,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"tool_choice\":{\"type\":\"image_generation\"},\"tool_usage\":{\"image_gen\":{\"input_tokens\":0,\"input_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"output_tokens\":0,\"output_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"total_tokens\":0},\"web_search\":{\"num_requests\":0}},\"tools\":[{\"type\":\"image_generation\",\"background\":\"auto\",\"model\":\"gpt-image-2\",\"moderation\":\"auto\",\"n\":1,\"output_compression\":10,\"output_format\":\"jpeg\",\"quality\":\"low\",\"size\":\"1024x1024\"}],\"top_logprobs\":0,\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"sequence_number\":0}\n\nevent: response.in_progress\ndata: {\"type\":\"response.in_progress\",\"response\":{\"id\":\"resp_0a372a7fcba6b284016a5ce5b6a12081a1be0e5db6b7067a0b\",\"object\":\"response\",\"created_at\":1784473014,\"status\":\"in_progress\",\"background\":false,\"completed_at\":null,\"error\":null,\"frequency_penalty\":0.0,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"model\":\"gpt-5-mini-2025-08-07\",\"moderation\":null,\"output\":[],\"parallel_tool_calls\":true,\"presence_penalty\":0.0,\"previous_response_id\":null,\"prompt_cache_key\":null,\"prompt_cache_retention\":\"in_memory\",\"reasoning\":{\"context\":\"current_turn\",\"effort\":\"medium\",\"mode\":\"standard\",\"summary\":\"detailed\"},\"safety_identifier\":null,\"service_tier\":\"auto\",\"store\":false,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"tool_choice\":{\"type\":\"image_generation\"},\"tool_usage\":{\"image_gen\":{\"input_tokens\":0,\"input_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"output_tokens\":0,\"output_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"total_tokens\":0},\"web_search\":{\"num_requests\":0}},\"tools\":[{\"type\":\"image_generation\",\"background\":\"auto\",\"model\":\"gpt-image-2\",\"moderation\":\"auto\",\"n\":1,\"output_compression\":10,\"output_format\":\"jpeg\",\"quality\":\"low\",\"size\":\"1024x1024\"}],\"top_logprobs\":0,\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"sequence_number\":1}\n\nevent: response.output_item.added\ndata: {\"type\":\"response.output_item.added\",\"item\":{\"id\":\"rs_0a372a7fcba6b284016a5ce5b7334081a1b3dc47c8448468b6\",\"type\":\"reasoning\",\"content\":[],\"encrypted_content\":\"gAAAAABqXOW3-Ow65f1AuZG4xw3IiCYm7EJ3ZPb6EqPBPK4wJeupE3cVGXIL92CKC2MMXvHbmV-LtR6csxDXJ7cOGOHD_KsKBJsnuDn8oBaUn56Ba2JqoVtEhHs3RDioGAB4fZp01cvBOiikRTzH1XYTpb1_4tR04nI8iO2pH5Kd3MrW5zYUeIl_Y9OdBTlJz3Mqxi0WfAIz4TY37_f_UaGJJXS8K9xu4fQ8Ef_poPHJVxWHiyZBiEh2FwPe8yoINa8Pu5_PyV_GfE--ClAfRTAhNZViOH2ne0Cg_oBtrRMVp9S9ql1Qx-IzWTAC38qh6tuhPWiAkrmPXUgN6BYaSK1S8z_E-Nr_51C9Q38uR2NUOEnpmeKR0RUjWEQC-cZYLQ19yTcAlfrYLccJSOPmp0R9h4GE8NvzB_HtvknArHZVaLxAOWrAwyGE7m6SGPMiVQqanAR85J3kFcZ3CMZlw4Y0u6rbYp30TSimarggY5epmeLE-1FC7LzgWRRvxTKS4N29mbUKoCPcXPyC47zR2OuHdV41Fvtaw-5oFutFU8WG0JJqF5jIt9WAvB4teei5dMdVRPo2iSGgvGrAYYjaOBy_P_XOPgp1woPy6_k6AzEhRuNzhgieMc9ZGUpNhIoge2slx_2WQKsjKnnqRjyAMl7e5EvelRoHpTOG0mDPxmqPDejoFiRGqGh2g6NM6-4KzOkZq7J5D455VN9OE_i0owr08zFSVfP5xlkwO6ByfHeSazzjQZjat3MLPzMKlIUAIzFNdvqO0ZwMCqiEQkQSN6tG9z4EDFUZddDjtNF0ncQg-VfTYZjV7r4fhKDJQKFhXRzgkHyyu_edb1mM5dd19-fzSV8zd_ZfgW7n_SgRSFqhrlE8Tmpi80gM_GPdn6UJ5oYC9q5CvdpR-sZ7kSOwcDTGDi3Jgt1r2hudc3CtAADTFf95O_-LnUg=\",\"summary\":[]},\"output_index\":0,\"sequence_number\":2}\n\nevent: response.output_item.done\ndata: {\"type\":\"response.output_item.done\",\"item\":{\"id\":\"rs_0a372a7fcba6b284016a5ce5b7334081a1b3dc47c8448468b6\",\"type\":\"reasoning\",\"content\":[],\"encrypted_content\":\"[encoded data, 4792 characters]\",\"summary\":[]},\"output_index\":0,\"sequence_number\":3}\n\nevent: response.output_item.added\ndata: {\"type\":\"response.output_item.added\",\"item\":{\"id\":\"ig_0a372a7fcba6b284016a5ce5bf22e081a19e660657ce98596f\",\"type\":\"image_generation_call\",\"status\":\"in_progress\"},\"output_index\":1,\"sequence_number\":4}\n\nevent: response.image_generation_call.in_progress\ndata: {\"type\":\"response.image_generation_call.in_progress\",\"item_id\":\"ig_0a372a7fcba6b284016a5ce5bf22e081a19e660657ce98596f\",\"output_index\":1,\"sequence_number\":5}\n\nevent: response.image_generation_call.generating\ndata: {\"type\":\"response.image_generation_call.generating\",\"item_id\":\"ig_0a372a7fcba6b284016a5ce5bf22e081a19e660657ce98596f\",\"output_index\":1,\"sequence_number\":6}\n\nevent: response.image_generation_call.partial_image\ndata: {\"type\":\"response.image_generation_call.partial_image\",\"background\":\"opaque\",\"item_id\":\"ig_0a372a7fcba6b284016a5ce5bf22e081a19e660657ce98596f\",\"output_format\":\"jpeg\",\"output_index\":1,\"partial_image_b64\":\"[encoded data, 49936 characters]\",\"partial_image_index\":0,\"quality\":\"low\",\"sequence_number\":7,\"size\":\"1024x1024\"}\n\nevent: response.output_item.done\ndata: {\"type\":\"response.output_item.done\",\"item\":{\"id\":\"ig_0a372a7fcba6b284016a5ce5bf22e081a19e660657ce98596f\",\"type\":\"image_generation_call\",\"status\":\"generating\",\"action\":\"edit\",\"background\":\"opaque\",\"output_format\":\"jpeg\",\"quality\":\"low\",\"result\":\"[encoded data, 49936 characters]\",\"revised_prompt\":\"Edit the provided image: change the solid black equilateral triangle to a flat solid blue triangle (use color #0000FF). Keep the triangle centered and the exact shape, size, and crisp edges as in the original. Preserve the plain white background (pure white). No shading, gradients, outlines, or texture—flat uniform blue fill. Maintain original image resolution and aspect ratio. Ensure anti-aliased clean edges.\",\"size\":\"1024x1024\"},\"output_index\":1,\"sequence_number\":8}\n\nevent: response.output_item.added\ndata: {\"type\":\"response.output_item.added\",\"item\":{\"id\":\"msg_0a372a7fcba6b284016a5ce5cc22f481a18bbb28bae4f0ce38\",\"type\":\"message\",\"status\":\"in_progress\",\"content\":[],\"role\":\"assistant\"},\"output_index\":2,\"sequence_number\":9}\n\nevent: response.content_part.added\ndata: {\"type\":\"response.content_part.added\",\"content_index\":0,\"item_id\":\"msg_0a372a7fcba6b284016a5ce5cc22f481a18bbb28bae4f0ce38\",\"output_index\":2,\"part\":{\"type\":\"output_text\",\"annotations\":[],\"logprobs\":[],\"text\":\"\"},\"sequence_number\":10}\n\nevent: response.output_text.done\ndata: {\"type\":\"response.output_text.done\",\"content_index\":0,\"item_id\":\"msg_0a372a7fcba6b284016a5ce5cc22f481a18bbb28bae4f0ce38\",\"logprobs\":[],\"output_index\":2,\"sequence_number\":11,\"text\":\"\"}\n\nevent: response.content_part.done\ndata: {\"type\":\"response.content_part.done\",\"content_index\":0,\"item_id\":\"msg_0a372a7fcba6b284016a5ce5cc22f481a18bbb28bae4f0ce38\",\"output_index\":2,\"part\":{\"type\":\"output_text\",\"annotations\":[],\"logprobs\":[],\"text\":\"\"},\"sequence_number\":12}\n\nevent: response.output_item.done\ndata: {\"type\":\"response.output_item.done\",\"item\":{\"id\":\"msg_0a372a7fcba6b284016a5ce5cc22f481a18bbb28bae4f0ce38\",\"type\":\"message\",\"status\":\"completed\",\"content\":[{\"type\":\"output_text\",\"annotations\":[],\"logprobs\":[],\"text\":\"\"}],\"role\":\"assistant\"},\"output_index\":2,\"sequence_number\":13}\n\nevent: response.completed\ndata: {\"type\":\"response.completed\",\"response\":{\"id\":\"resp_0a372a7fcba6b284016a5ce5b6a12081a1be0e5db6b7067a0b\",\"object\":\"response\",\"created_at\":1784473014,\"status\":\"completed\",\"background\":false,\"completed_at\":1784473036,\"error\":null,\"frequency_penalty\":0.0,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"model\":\"gpt-5-mini-2025-08-07\",\"moderation\":null,\"output\":[{\"id\":\"rs_0a372a7fcba6b284016a5ce5b7334081a1b3dc47c8448468b6\",\"type\":\"reasoning\",\"content\":[],\"encrypted_content\":\"[encoded data, 4792 characters]\",\"summary\":[]},{\"id\":\"ig_0a372a7fcba6b284016a5ce5bf22e081a19e660657ce98596f\",\"type\":\"image_generation_call\",\"status\":\"generating\",\"action\":\"edit\",\"background\":\"opaque\",\"output_format\":\"jpeg\",\"quality\":\"low\",\"result\":\"[encoded data, 49936 characters]\",\"revised_prompt\":\"Edit the provided image: change the solid black equilateral triangle to a flat solid blue triangle (use color #0000FF). Keep the triangle centered and the exact shape, size, and crisp edges as in the original. Preserve the plain white background (pure white). No shading, gradients, outlines, or texture—flat uniform blue fill. Maintain original image resolution and aspect ratio. Ensure anti-aliased clean edges.\",\"size\":\"1024x1024\"},{\"id\":\"msg_0a372a7fcba6b284016a5ce5cc22f481a18bbb28bae4f0ce38\",\"type\":\"message\",\"status\":\"completed\",\"content\":[{\"type\":\"output_text\",\"annotations\":[],\"logprobs\":[],\"text\":\"\"}],\"role\":\"assistant\"}],\"parallel_tool_calls\":true,\"presence_penalty\":0.0,\"previous_response_id\":null,\"prompt_cache_key\":null,\"prompt_cache_retention\":\"in_memory\",\"reasoning\":{\"context\":\"current_turn\",\"effort\":\"medium\",\"mode\":\"standard\",\"summary\":\"detailed\"},\"safety_identifier\":null,\"service_tier\":\"default\",\"store\":false,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"tool_choice\":{\"type\":\"image_generation\"},\"tool_usage\":{\"image_gen\":{\"input_tokens\":1116,\"input_tokens_details\":{\"image_tokens\":1024,\"text_tokens\":92},\"output_tokens\":196,\"output_tokens_details\":{\"image_tokens\":196,\"text_tokens\":0},\"total_tokens\":1312},\"web_search\":{\"num_requests\":0}},\"tools\":[{\"type\":\"image_generation\",\"background\":\"auto\",\"model\":\"gpt-image-2\",\"moderation\":\"auto\",\"n\":1,\"output_compression\":10,\"output_format\":\"jpeg\",\"quality\":\"low\",\"size\":\"1024x1024\"}],\"top_logprobs\":0,\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":3510,\"input_tokens_details\":{\"cache_write_tokens\":0,\"cached_tokens\":0},\"output_tokens\":669,\"output_tokens_details\":{\"reasoning_tokens\":512},\"total_tokens\":4179},\"user\":null,\"metadata\":{}},\"sequence_number\":14}\n\n"
      }
    }
  ]
}
