Skip to main content
Use the OpenAI SDK or an OpenAI-compatible client to call GeekAI’s chat models, including Claude and Gemini. GeekAI also offers search, file extraction, and OCR APIs. Accounts and keys are separate for each region. Use the endpoint that matches your account and comply with applicable laws and service terms. Each key has a routing policy that determines the discount; edit the key to change routes. In third-party tools, choose an OpenAI-compatible provider and replace its base URL and key. Some clients append /v1 automatically: if you see /v1/v1 in the request URL, remove the trailing /v1 from your configuration.

Send a chat request

Set GEEKAI_API_KEY in your environment. The examples below use the international endpoint and return a complete reply. To stream tokens instead, set stream to true and consume the server-sent events as they arrive.

Analyze an image

Select a model with image input in the marketplace. Send a user message with two content parts: the question and the image URL. The SDK examples below reuse the client initialized above.

Developer group

Join the developer group for help with API calls, technical discussions, and product updates. QR code for the GeekAI developer group