{"input_schema":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string"},"content":{}},"required":["role"],"additionalProperties":true}}},"required":["messages"],"additionalProperties":true,"not":{"anyOf":[{"required":["wire"]},{"required":["path"]},{"required":["body"]}]}},{"type":"object","properties":{"wire":{"const":"anthropic"},"path":{"const":"/v1/messages"},"body":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string"},"content":{}},"required":["role"],"additionalProperties":true}},"max_tokens":{"type":"integer","minimum":1}},"required":["messages"],"additionalProperties":true}},"required":["wire","path","body"],"additionalProperties":false},{"type":"object","properties":{"wire":{"const":"openai"},"path":{"const":"/v1/chat/completions"},"body":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string"},"content":{}},"required":["role"],"additionalProperties":true}}},"required":["messages"],"additionalProperties":true}},"required":["wire","path","body"],"additionalProperties":false},{"type":"object","properties":{"wire":{"const":"openai"},"path":{"const":"/v1/responses"},"body":{"type":"object","properties":{"input":{}},"required":["input"],"additionalProperties":true}},"required":["wire","path","body"],"additionalProperties":false}],"description":"Text uses the default native operation. A native object uses that same default; an explicit {wire,path,body} envelope selects a registered operation. The product supplies the model field."},"output_schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"description":"Native response object when inline; larger and streaming output uses the Run artifact."},"addons_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"max_output_tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Maps to native max_completion_tokens."},"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"response_format":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Native format object for response_format; the selected model must support it."},"tools":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]}},"additionalProperties":false,"description":"Conflicting fields in the native body are rejected. Tools and format objects use the selected native wire shape; model-specific restrictions still apply."},"native_operations":[{"wire":"anthropic","path":"/v1/messages","default":false,"input_schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string"},"content":{}},"required":["role"],"additionalProperties":true}},"max_tokens":{"type":"integer","minimum":1}},"required":["messages"],"additionalProperties":true},"output_schema":{"type":"object","additionalProperties":true,"description":"Native anthropic response for /v1/messages; streaming output is available through the Run artifact and events."},"addons_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"max_output_tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Maps to native max_tokens."},"temperature":{"type":"number","minimum":0,"maximum":1},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"response_format":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Native format object for output_config.format; the selected model must support it."},"tools":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]}},"additionalProperties":false,"description":"Conflicting fields in the native body are rejected. Tools and format objects use the selected native wire shape; model-specific restrictions still apply."}},{"wire":"openai","path":"/v1/chat/completions","default":true,"input_schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string"},"content":{}},"required":["role"],"additionalProperties":true}}},"required":["messages"],"additionalProperties":true},"output_schema":{"type":"object","additionalProperties":true,"description":"Native openai response for /v1/chat/completions; streaming output is available through the Run artifact and events."},"addons_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"max_output_tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Maps to native max_completion_tokens."},"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"response_format":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Native format object for response_format; the selected model must support it."},"tools":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]}},"additionalProperties":false,"description":"Conflicting fields in the native body are rejected. Tools and format objects use the selected native wire shape; model-specific restrictions still apply."}},{"wire":"openai","path":"/v1/responses","default":false,"input_schema":{"type":"object","properties":{"input":{}},"required":["input"],"additionalProperties":true},"output_schema":{"type":"object","additionalProperties":true,"description":"Native openai response for /v1/responses; streaming output is available through the Run artifact and events."},"addons_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"max_output_tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Maps to native max_output_tokens."},"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"response_format":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Native format object for text.format; the selected model must support it."},"tools":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]}},"additionalProperties":false,"description":"Conflicting fields in the native body are rejected. Tools and format objects use the selected native wire shape; model-specific restrictions still apply."}}],"id":"google/gemini-3.1-flash-image","object":"model","owned_by":"google","type":"image","name":"Google: Nano Banana 2 (Gemini 3.1 Flash Image)","description":"Gemini 3.1 Flash Image, a.k.a. \"Nano Banana 2,\" is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines advanced...","context_length":131072,"max_output_tokens":32768,"input_modalities":["image","text"],"output_modalities":["image","text"],"wires":["anthropic","openai"],"aliases":["google/gemini-3.1-flash-image","gemini-3.1-flash-image"],"pricing":{"input":"0.000001055","output":"0.00000633","input_cache_read":"0.000001055","input_cache_write":"0.000001055"},"list_pricing":{"input":"0.000001055","output":"0.00000633","input_cache_read":"0.000001055","input_cache_write":"0.000001055"}}