Gemini 4 Neon
Google's multimodal reasoning model for software engineering, data analysis, and scientific problems. The public model ID is gemini-4-neon.
Keep your SDK. Connect in minutes.
Point the Base URL to api.acedata.cloud, configure your platform API key and the model ID below, and use your compatible SDK or client.
- API host
api.acedata.cloud- model
gemini-4-neon
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["ACEDATACLOUD_API_KEY"],
base_url="https://api.acedata.cloud/v1",
)
response = client.responses.create(
model="gemini-4-neon",
input="Hello!",
)
print(response.output_text)Choose an available protocol for this model. OpenAI SDK uses a Base URL ending in /v1; Anthropic SDK uses the root URL. See each guide for protocol-specific parameters, tools and response formats.
Model specifications
- Official context window
- 1,048,576 tokens shared between input and output
- Official synchronous output limit
- 65,536 tokens
- Input and output
- The official model accepts text, images, video, audio, and PDFs, and outputs text. See each API's documentation for the fields accepted by the platform.
Chat Completions
Send messages to /gemini/chat/completions and enter gemini-4-neon in the model field.
Generate Content
Send contents to /v1/models/gemini-4-neon:generateContent. Place text in the parts of each message.
Thinking and output
Thinking and visible text share the output budget. When setting the output limit, leave room for reasoning and check the returned stop reason.
Billing
Input, implicit cache hits, and output are billed separately. Thinking tokens are billed at the output rate, and actual Credits consumption can be checked in the request record.
Frequently asked questions
Which model name should I enter?
Enter gemini-4-neon, including the hyphens.
How do I use an existing OpenAI client?
Chat Completions uses messages, and Responses uses input. Existing Anthropic clients can use Messages, with messages and max_tokens in the request.
How do I reuse native Gemini requests?
Select the Generate Content endpoint and use the contents and parts fields.
Can I create an explicit cache?
Google provides implicit caching for Neon. The returned usage reflects tokens served from the cache.
Does the official synchronous output limit guarantee the length of the visible text?
The actual length of the visible text depends on input length, thinking usage, output budget, and the stop reason.
References
Google model specifications · Google API pricing · Chat Completions · Responses · Messages
Use it in your favorite tools
Choose a development approach or application suited to this model and follow its setup guide.
Connect gemini-4-neon to OpenAI SDK
OpenAI Chat Completions API
SDK installation, authentication and examplesConnect gemini-4-neon to LangChain
LangChain Integration Guide
SDK installation, authentication and examplesConnect gemini-4-neon to OpenAI SDK · Responses
OpenAI Responses API
SDK installation, authentication and examplesClaude Messages API
API parameters and request examplesConnect gemini-4-neon to Claude Code
Claude Code CLI Setup Guide
Coding tool setup · requires a Coding Plan application keyConnect gemini-4-neon to Cherry Studio
Using Ace Data Cloud with Cherry Studio
Chat client setup · Base URL, API key and modelConnect gemini-4-neon to ChatBox
Using Ace Data Cloud with ChatBox
Chat client setup · Base URL, API key and modelGemini Chat Completion API
API parameters and request examplesQuickstart
This is only a basic call example. See the full docs for more parameters and advanced usage.
View Docs
