How to use Ezkielyna API with the OpenAI SDK (Python and JavaScript)

Ezkielyna API is compatible with the official OpenAI SDKs. An app that already uses OpenAI only needs a new base URL and key, plus a model name from the model list (no vendor prefix).

As of 2026-11-12, DeepSeek V4.1 Flash costs $0.04 per 1M input tokens and $0.16 per 1M output tokens (read live from the gateway pricing). Ezkielyna is an independent gateway, not affiliated with the model makers.

Updated from live data · Sources: model list · status page

What you need

  • Python 3.8+ (pip install openai) or Node.js 18+ (npm install openai)
  • An Ezkielyna API key

Steps

  1. 1Top up API Credit

    Open ezkielyna.store/api-credit, pick a pack and pay with QRIS, USDT (BEP-20 or Solana), Binance Pay or store balance. A redeem code appears on the order page once payment is confirmed. The balance does not expire and there is no monthly fee.

  2. 2Redeem the code and create an API key

    Sign in at https://api.ezkielyna.store (if you have no account there, use the Ezkielyna Store sign-in button on that page), open Wallet and paste the redeem code. Then open API Keys and create a key. The Standard group covers DeepSeek, GLM, MiniMax, Qwen and Kimi K2.7; choose Auto if you also want Premium models such as Kimi K3, Claude or GPT with the same key.

  3. 3Keep the key in an environment variable

    Store the key as an environment variable so it is not written into code.

    terminal
    export EZK_API_KEY="sk-..."
  4. 4Python

    Install the openai package and create a client with the Ezkielyna base URL.

    main.py
    import os
    from openai import OpenAI
    
    client = OpenAI(base_url="https://api.ezkielyna.store/v1", api_key=os.environ["EZK_API_KEY"])
    
    r = client.chat.completions.create(
        model="deepseek-v4.1-flash",
        messages=[{"role": "user", "content": "Explain what an API is in two sentences."}],
    )
    print(r.choices[0].message.content)
  5. 5JavaScript / TypeScript

    Install the openai package and set baseURL. This example streams the answer.

    index.mjs
    import OpenAI from "openai";
    
    const client = new OpenAI({ baseURL: "https://api.ezkielyna.store/v1", apiKey: process.env.EZK_API_KEY });
    
    const stream = await client.chat.completions.create({
      model: "glm-5.3",
      messages: [{ role: "user", content: "Give me 3 name ideas for a coffee shop." }],
      stream: true,
    });
    for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content || "");
  6. 6Switch models

    Every model uses the same client; change the model value (for example kimi-k2.7 or qwen3.8-flash). Premium models such as Kimi K3 need a key in the Premium or Auto group. Names and prices are on the model list.

If something goes wrong

  • 401: the key is wrong, disabled or the balance is empty. model not found: the name does not match the model list exactly or your key group does not cover it.
  • The base URL must end in /v1; the SDK appends /chat/completions itself.

Other guides: Cline · Kilo Code · Roo Code · Claude Code · OpenCode · Continue

Prices: DeepSeek · GLM · Kimi · OpenRouter alternative

Try Ezkielyna API

Top up API Credit, redeem the code in the dashboard, create a key and point any OpenAI-compatible tool at https://api.ezkielyna.store/v1. Pay as you go; the balance does not expire.

Bahasa Indonesia: Panduan Python & JavaScript SDK dalam Bahasa Indonesia