{"@context":"https://www.skillboss.co/docs/agent-shopping-protocol","spec_version":"0.1","id":"google/gemini-3.1-flash-image-preview","slug":"gemini-3-1-flash-image-preview-api","name":"gemini-3.1-flash-image-preview","category":"image_generation","vendor":"google","description":"","pricing":{"unit":"token","per_1m_input_usd":0.75,"per_1m_output_usd":null},"endpoint":"https://api.skillboss.co/v1beta/models/gemini-3.1-flash-image-preview:generateContent","auth":{"type":"api_key_or_bearer","header":"x-goog-api-key","alternate_header":"Authorization"},"retry_policy":{"idempotent":false,"safe_to_retry":true,"max_attempts":3},"capabilities":["creation","image_generation"],"payment_protocols":{"skillboss_wallet":{"supported":true,"default":true,"min_balance_usd":0.01,"reason":"Primary path. Wallet pre-funded, per-call auth via Authorization bearer token."},"x402":{"supported":true,"preferred":false,"reason":"Supported but pricing varies with inputs; agents should prefer skillboss_wallet or mpp.","header":"X-Payment-Protocol: x402","quote_response_code":402,"example_curl":"curl -X POST https://api.skillboss.co/v1/run \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-Payment-Protocol: x402\" \\\n  -d '{\"model\": \"google/gemini-3.1-flash-image-preview\", \"inputs\": {}}'\n\n# Server returns 402 + quote, agent pays, then retries."},"mpp":{"supported":true,"preferred":true,"reason":"Token-based / usage-based pricing — MPP post-pay fits best.","header":"X-Payment-Protocol: mpp","example_curl":"curl -X POST https://api.skillboss.co/v1/run \\\n  -H \"Authorization: Bearer $SKILLBOSS_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-Payment-Protocol: mpp\" \\\n  -d '{\"model\": \"google/gemini-3.1-flash-image-preview\", \"inputs\": {}}'"}},"example_curl":"curl -X POST https://api.skillboss.co/v1beta/models/gemini-3.1-flash-image-preview:generateContent \\\n  -H \"x-goog-api-key: $SKILLBOSS_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"contents\":[{\"parts\":[{\"text\":\"Reply with exactly OK.\"}]}]}'","input_schema":{"type":"object","description":"Gemini-native request body. Put the model identifier in the URL and send a contents array with parts."},"output_schema":{"type":"object","description":"Vendor-specific response. Agents should inspect the full response body and handle vendor-specific fields."},"mcp_tool_name":"google/gemini-3.1-flash-image-preview","human_url":"https://www.skillboss.co/use/gemini-3-1-flash-image-preview-api","product_json_url":"https://www.skillboss.co/use/gemini-3-1-flash-image-preview-api/product.json","funding_url":"https://www.skillboss.co/console","generated_at":"2026-06-13T14:02:00.202Z"}