Integration examples

Copy the shortest setup for your tool

This page is a practical setup guide for using api-zeno after you have an API Key and Base URL.

curl

HTTP

Verify your API Key, Base URL, model name, and network path with one command.

Focus: Authorization Bearer, Base URL, model

Node.js SDK

OpenAI SDK

Reuse the OpenAI Node SDK in your app by changing only baseURL and apiKey.

Focus: baseURL, apiKey, chat.completions.create

Python SDK

OpenAI SDK

Send your first request from a Python script or backend service with the OpenAI Python SDK.

Focus: OpenAI client, base_url, model

Codex / cc-switch

CLI config

After Codex is installed, put the API Key and Base URL into your cc-switch configuration.

Focus: cc-switch config, api-zeno.com/v1, API Key

Cursor

Editor config

Configure Cursor with an OpenAI-compatible endpoint so it calls models through api-zeno.

Focus: OpenAI Compatible, Base URL, API Key

Claude Code

AI coding tool

Connect Claude Code or similar AI coding tools without writing secrets into project source files.

Focus: environment variables, local config, key isolation

Before you use an example

Examples explain connection patterns only. Real API Keys must never be written into source code, screenshots, or logs.

  • Create an API Key in the console and confirm that it is enabled.
  • For personal users, use Base URL https://api-zeno.com/v1.
  • Confirm that the model is allowed by your plan, group, or model allowlist.
  • Keep API Keys in local config, server-side environment variables, or a trusted secret manager.