Dokumentasi API

Mulai cepat

Buat permintaan API kompatibel OpenAI pertama ke LingCoreX.AI, atur kunci API, dan verifikasi respons berhasil.

Ringkasan panduan

Buat permintaan API kompatibel OpenAI pertama ke LingCoreX.AI, atur kunci API, dan verifikasi respons berhasil.

Buat permintaan API kompatibel OpenAI pertama ke LingCoreX.AI, atur kunci API, dan verifikasi respons berhasil.

Contoh kode

The fastest connectivity check is a single OpenAI-compatible chat completions request.

OpenAI-compatible curl request
curl https://api.lingcorex.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.4-mini",
    "messages": [
      {"role": "user", "content": "Return a one-line health check."}
    ],
    "stream": false
  }'

Contoh kode 2

Claude Code works best when the key comes from an Anthropic-native group, because that path preserves Anthropic-native behavior more faithfully.

Codex shell setup
export OPENAI_BASE_URL=https://api.lingcorex.ai/v1
export OPENAI_API_KEY=YOUR_API_KEY
codex
Claude Code shell setup
ANTHROPIC_BASE_URL=https://api.lingcorex.ai \
ANTHROPIC_API_KEY=YOUR_API_KEY \
ANTHROPIC_CUSTOM_MODEL_OPTION=claude-sonnet-4-5 \
claude

Checklist integrasi

01

1

Buat kunci API di dasbor dan pilih grup model yang tepat.

02

2

Jalankan contoh di lingkungan uji, lalu periksa error dan catatan penggunaan.

03

3

Sebelum production, verifikasi QPM, anggaran, dan harga model efektif.

Mencari harga atau ringkasan produk?

Gunakan halaman harga untuk informasi komersial terbaru dan beranda untuk gambaran produk.