OpenAI SDK setup

Use DeepSeek from OpenAI SDK-compatible code

If your app already uses the OpenAI SDK pattern, the fastest gogogoapi test is to set a custom base URL and swap in your dashboard key.

Node.js SDK example

Use a server-side environment variable for the key and send a short chat completion request to confirm the route.

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.GOGOGOAPI_KEY,
  baseURL: "https://www.gogogoapi.com/api/v1",
});

const response = await client.chat.completions.create({
  model: "deepseek-v4-flash",
  messages: [{ role: "user", content: "Write a concise release note." }],
  max_completion_tokens: 256,
});

Minimal code change

Most compatible stacks need only a base URL, model name, and API key change for the first smoke test.

Server-side key handling

The dashboard key is designed for backend use, serverless functions, or worker environments.

Prepaid request control

Requests quote and settle against your available USD API credits instead of unlimited card billing.

Decision guide

SDK fields to change

Use this snapshot to decide whether the route matches your first production or smoke-test use case.

baseURL
https://www.gogogoapi.com/api/v1

Point the compatible client at gogogoapi.

apiKey
process.env.GOGOGOAPI_KEY

Use a server-side key created in the dashboard.

model
deepseek-v4-flash

Start with the live low-cost model for setup tests.

FAQ

Questions before you test

Short answers for the questions developers usually ask before creating the first API key.

Will every OpenAI SDK feature work?

The first supported path is chat-style model calls. Provider-specific OpenAI features may need separate compatibility checks.

Can I use this in Python too?

Yes, if the client supports a custom base URL and bearer key. Keep the same base URL, key, and model naming pattern.

What should I test first?

Send a one-sentence prompt with a small max completion token budget, then confirm the dashboard ledger changed as expected.

Ready to build

Sign in, buy credits, create an API key.

Use the dashboard to fund USD credits with USDT or USDC, create a backend key, and send your first China model API request.

Open dashboard