{"openapi":"3.2.0","info":{"title":"Gemini AI All Models API","description":"⚡50% Discount | Direct and highly available API for all latest Gemini models Gemini-4 Series, Gemini 3.8 Flash, and more","version":"1.0.0"},"servers":[{"url":"https://gemini.jojapi.net"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"List Models"},{"name":"Google Official Endpoints"},{"name":"OpenAI compatible Endpoints"},{"name":"Anthropic Endpoints"}],"x-agent-commerce":{"catalog_url":"https://gemini.jojapi.net/_jojapi/agent/plans","discovery_url":"https://gemini.jojapi.net/.well-known/x402","directory_url":"https://agents.jojapi.net/apis/gemini","docs":"https://docs.jojapi.com/consumers/agents"},"paths":{"/models":{"get":{"operationId":"get_models","summary":"List Models","description":"Return a list of available models on this API","tags":["List Models"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"examples":{"default":{"value":["gemini-4-carbon","gemini-4-argon"]},"captured":{"value":{"object":"list","data":[{"id":"gemini-4-carbon","object":"model","owned_by":"system","endpoints":["/messages","/chat/completions"]},{"id":"gemini-4-argon","object":"model","owned_by":"system","endpoints":["/v1beta/models/gemini-4-argon:generateContent","/v1beta/models/${model}:generateContent"]}]}}}}}}}}},"/generateContent":{"post":{"operationId":"post_generateContent","summary":"Generate Cotnent","description":"The official Google Gemini API endpoint for generating content using Gemini models.\nThis endpoint supports multimodal inputs, including text, images, audio, video, and documents, depending on the capabilities of the selected model. It also supports conversation history, system instructions, function calling, structured JSON output, safety settings, and configurable generation parameters.","tags":["Google Official Endpoints"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"example":{"candidates":[{"content":{"role":"model","parts":[{"text":"**None.** \n\nThe bird that was shot fell out of the tree, and the sound of the gunshot scared the other nine away!","thoughtSignature":"EtUFCtIFAWkUfRPuMpSNAgA4nvrl0DaNYeQxYcMb/nau7l/3Uxw9FHxUaABd/ROx7kICbri3caHj+s929LIQcV87zBrmcbTYs9GLnkbFH54Z25tkvL1SEX8XtawH5JPzE/DbpnkF6Ju2ctEaLPNYRdAGe2rdYAfBMqWhe+RIVGiiWGbreemqLl9HBGD+4hI+03ejKU+QNxqVusmyV5F8D6GuhdhbrfH9b+3AVYPDrLmprRz6B0/3MkhpKe/1Y1nWcmYo4aA/Os/a2i7KLZeHuvN7yRAntVBxds8Rei1qynXk61/LxwYrzPUfSJlf43tJnMz/+u3E9Mt4JUhPFev+t/PIlh+dwsqjwOx8/iF9jDXJkbMj1jjUfsN4ThbLBNY9FyiXgyrnrdU3uhdD+p2DWh1SGzKKko3yoXmmXqows9Tlofmf8lM9Q90EMmrANHoaGSWV6eWy2bRsnmRpaes4IVgI/4GGLdWtcForQdypyg6mhr09Jka8sU8/7fSO4iYNBto6U2MunrgWB7hpNmHYRWOvSamaGyQMquUnnpdRN0bY3KdiwopMrgZkv2nntdpj0OEP+IiUEHX04Sl1dpjzgf3HrIO9oINZ2x/EdncrO5///zsjocRim6XK1FVn3K5i3xiOmMDGvkuN1Ut4IrlEix/ieU6+wEjzbuwAKpKEgsAEiIFL42o/4ovHBUsdqAt3sSvbLBasl/diEtqxqCzh3xqHZVa8qBUBqI9bt64KDGxkBkBGmEEDjBRk221b15DGIw7uztwgZ3vS6iD9uiCFny7gZJr0UTn/ioB3USeiEAF1h7K1nPs51JMt0Jp5IuJprdja4sVwOoRUQGPXlfyP9feCphLZxvvtxXFbKYCqZBP934s09jtxZQcKuhOSeWNFg5CwrnI7Co/pTt6C5xmF73xol6dxsiWwN/iwDdCdIZhXw7Ykqmheum/zlBHt1eva5N8lPGLlZNc="}]},"finishReason":"STOP","index":0}],"promptFeedback":{"blockReason":"","safetyRatings":null},"usageMetadata":{"promptTokenCount":52,"candidatesTokenCount":32,"totalTokenCount":256,"thoughtsTokenCount":172,"promptTokensDetails":[{"modality":"TEXT","tokenCount":52}],"candidatesTokensDetails":[{"modality":"TEXT","tokenCount":32}],"credits_details":{"credits_used":212,"cost_in_dollars":0.000212}},"modelVersion":"gemini-4-carbon","responseId":"drnzarq5GNXcjMcPi5fq4AU"}}}}},"requestBody":{"content":{"application/json":{"schema":{"model":"gemini-3-flash","contents":[{"parts":[{"text":"What is the latest news in Canada?"}]}],"tools":[{"google_search":{}}]},"example":{"model":"gemini-4-carbon","contents":[{"role":"user","parts":[{"text":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]}]}}}}}},"/chat/completions":{"post":{"operationId":"post_chat_completions","summary":"Chat Completion","description":"Creates a model response for the given chat conversation.","tags":["OpenAI compatible Endpoints"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"example":{"id":"fbnzap_dHYKb_uMP5aW1yAo","object":"chat.completion","created":1794357635,"model":"gemini-4-carbon","choices":[{"index":0,"message":{"role":"assistant","content":"None. The bird that got shot fell to the ground, and the loud sound of the gunshot scared the other nine away!","encrypted_content":"EocGCoQGAWkUfRP2yiG8Z/uhLlRzGhhRaiPtVmvXGNIIBfiCoB8Enc0sPIQEAvtNGNo3ijnfkxltoudHb4L/AJ8pTJAdzo1NeJpbhsOMDNhig7evECqi4F9Hq1Mvy8EmsowpQRSz07Al7DZKfXKEi+ZG9/nwkw0wJNQm73BV0QrYk5qYoMsnLgCNFZWj9D46O0TU2r5Hub28HCEj1oBDgfzpvi3fPCAK8GQC6aOGp3VMJyn5tRsDA7UkkkjF5mBbqN7RNB3Pn8kkNpciF1wIN1nNIVoTDeDAAzjLsb8G6Xh4yNWWEpUZ0NVDztuVyri22MND5nJo9tIeh6WiYrqlqBKqyH82YkHOCiI+QrqJncTk/KfomEuaE4WY3l8oRFI+NbI7rib5BI5XFp0djnzPj9Yrl3ujcMAF/uzIR2VCsZz9oKCYS2ul2wXTFp8t2Nqrq0jHSGHbN7otj7SsAD4f0P1uDW/vI7qswR9U3mjS/PE2HTonfXDm0T1Y5Jjs/+Iwa8nis/qxvy1APOfOMUIGBtAY9yU8UnoDq5yfYqSSceYHrz5iovO7TejxpIqZuzs7T9DjRT978cjuoBYQ6Bgk3bMP9Yq/41Zf0L21eRMG0nsbclpCG7bdPOxENadSGwhUTlQa4jHiv9GaePluJpo1Iwp36kJ+ug6Ol8TnHFjNZ3sbM7SCsvAme8KItR+EgeHzposxFATOk5SGlxeQCBpvSwz7AyreKW9UVUm9Nu/0CpgBl6azcccIkKJroXm0kzu0wjT3Yenc2b+MEMNPh7Ax+2r/JbymZ3d42mWd2lV8mw/fP+9WKnF5SgNse/SfqA12wFgN+0YImY+1qlqj3+P23doss0oMlPw33zpl41yloFK8HgH69kJWjpFvzrH0KUuCp/qAr4EA0SqK8pvXwE5ui03dNpX/Aqqyj82cU6ef5pGqITQ88gJs+8pAZDqmx4P8YAoGAOJYarSoYnXNKOKQfRMC7GGBqwQe2dE6GDz1EysI0Vb1HPnxecSd6oy9BgV8WtgAck0NF1TTvg=="},"finish_reason":"stop"}],"usage":{"prompt_tokens":52,"completion_tokens":199,"total_tokens":251,"prompt_tokens_details":{"text_tokens":52},"completion_tokens_details":{"text_tokens":29,"reasoning_tokens":170,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"credits_details":{"credits_used":1047,"cost_in_dollars":0.001047}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":{"model":"gemini-4-carbon","messages":[{"role":"user","content":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]}}}}}},"/responses":{"post":{"operationId":"post_responses","summary":"Responses","description":"Creates a model response. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model’s response.","tags":["OpenAI compatible Endpoints"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"example":{"created_at":1794357643,"id":"hbnzarLXHNOS39IP5r-jsQQ","model":"gemini-4-carbon","object":"response","output":[{"type":"message","id":"msg_Xr9PtGuDtbNCVN7xIc9S9zYqVIAs3HKGLG0mdFuohvkNdl9l","status":"completed","role":"assistant","content":[{"type":"output_text","text":"**None (zero).** \n\nThebird that got shot fell to the ground, and the loud sound of the gunshot scared the other nine birds away!"}]}],"status":"completed","text":{"format":{"type":"text"}},"prompt_cache_key":"","safety_identifier":"","usage":{"input_tokens":52,"output_tokens":183,"total_tokens":235,"output_tokens_details":{"reasoning_tokens":147,"text_tokens":36},"input_tokens_details":{"cached_tokens":0,"text_tokens":52},"credits_details":{"credits_used":967,"cost_in_dollars":0.000967}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":{"model":"gemini-4-carbon","input":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}}}}}},"/messages":{"post":{"operationId":"post_messages","summary":"Messages","description":"The official Anthropic API endpoint for generating conversational responses using Claude models.\n\nThis endpoint supports text and multimodal inputs, including images and documents, depending on the capabilities of the selected model. It also supports multi-turn conversations, system instructions, tool use (function calling), extended thinking, prompt caching, structured content blocks, and configurable generation parameters.","tags":["Anthropic Endpoints"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"example":{"id":"kbnzauuFHY3Qz7IPzLLD2AU","type":"message","role":"assistant","content":[{"type":"text","text":"**None.** \n\nThe one that got shot fell to the ground, and the loud sound of the gunshot scared the other nine away!"}],"model":"gemini-4-carbon","stop_reason":"end_turn","usage":{"input_tokens":52,"output_tokens":213,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"output_tokens_details":{},"credits_details":{"credits_used":1117,"cost_in_dollars":0.001117}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":{"model":"gemini-4-carbon","messages":[{"role":"user","content":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JoJAPI-Key","description":"Your JoJ API key."}}}}