We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
EssentialSession, security and preferences. Needed for the site to work.Always on
New here? See how it worksA 1-minute tour of the playground, models and your API key.
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"model": "~google/gemini-carbon-latest",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api14.com/api/v1/chat/completions"))
.header("Authorization", "Bearer " + System.getenv("API14_API_KEY"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
using OpenAI;
using OpenAI.Chat;
using System.ClientModel;
var client = new ChatClient(
model: "~google/gemini-carbon-latest",
credential: new ApiKeyCredential(Environment.GetEnvironmentVariable("API14_API_KEY")!),
options: new OpenAIClientOptions { Endpoint = new Uri("https://api14.com/api/v1") });
ChatCompletion completion = client.CompleteChat("Explain vector databases in two sentences.");
Console.WriteLine(completion.Content[0].Text);
How much does the Google: Gemini Carbon Latest API cost?
Google: Gemini Carbon Latest costs Input $14.00 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Google: Gemini Carbon Latest?
Google: Gemini Carbon Latest reads up to 1,048,576 tokens per request: prompt, history and documents together. It writes up to 943,718 output tokens per response.
What can Google: Gemini Carbon Latest do?
Google: Gemini Carbon Latest accepts audio, file, image, text, video and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call Google: Gemini Carbon Latest from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "~google/gemini-carbon-latest". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Google: Gemini Carbon Latest?
Comparable Text models at a similar price: OpenAI: GPT-6.2 Astra Pro (batch), OpenAI: GPT-6.2 Astra (batch), Google: Gemini 4 Carbon. Each runs through the same API key, so switching is one string.