{"input_schema":{"type":"object","properties":{"prompt":{"type":"string","description":"What to draw, in plain language.","examples":["A paper airplane over a city at dusk, flat illustration"]},"aspect_ratio":{"type":"string","description":"Shape of the image: 1:1. Square when omitted.","examples":["1:1"]},"resolution":{"type":"string","description":"Size class of the image: 1K, 2K or 4K. 1K when omitted.","examples":["1K"]}},"required":["prompt"],"additionalProperties":true,"examples":[{"prompt":"A paper airplane over a city at dusk, flat illustration"}]},"output_schema":{"type":"object","description":"After COMPLETED, find image parts in run.output.candidates[].content.parts[].inlineData. Decode each inlineData.data from base64 and use inlineData.mimeType for the file format; other parts may contain text.","additionalProperties":true},"addons_schema":{"type":"object","additionalProperties":false},"capability_id":"google.image","session_compatible":true,"pricing_available":true,"id":"google/gemini-3.1-flash-image-preview","object":"endpoint","provider":"google","endpoint":"gemini-3.1-flash-image-preview","model_category":"image","name":"gemini-3.1-flash-image-preview","summary":"Generate an image from a written description.","description":"Generate an image from a text prompt. The request may return RUNNING before the image is ready; poll GET /v1/runs/{runId} until COMPLETED. Returns image content.","unit":"token","price_per_unit":null,"list_price_per_unit":null,"pricing":[{"meter":"INPUT_TOKEN","unit":"token","price_per_unit":"0.000000175","list_price_per_unit":"0.00000025"},{"meter":"OUTPUT_TOKEN","unit":"token","price_per_unit":"0.0000021","list_price_per_unit":"0.000003"},{"meter":"IMAGE_OUTPUT_TOKEN","unit":"token","price_per_unit":"0.000042","list_price_per_unit":"0.00006"}],"reports_cost":false,"input_fields":[{"name":"prompt","type":"string","required":true,"description":"What to draw, in plain language.","example":"A paper airplane over a city at dusk, flat illustration"},{"name":"aspect_ratio","type":"string","required":false,"description":"Shape of the image: 1:1. Square when omitted.","example":"1:1"},{"name":"resolution","type":"string","required":false,"description":"Size class of the image: 1K, 2K or 4K. 1K when omitted.","example":"1K"}],"example_request":{"provider":"google","endpoint":"gemini-3.1-flash-image-preview","input":{"prompt":"A paper airplane over a city at dusk, flat illustration"}},"output":"After COMPLETED, find image parts in run.output.candidates[].content.parts[].inlineData. Decode each inlineData.data from base64 and use inlineData.mimeType for the file format; other parts may contain text.","limits":{"request_bytes":1000000,"timeout_ms":540000,"input_characters":null,"audio_bytes":null}}