Authentication

All API requests require authentication via an API key. This guide covers how to obtain and use your API key.

Getting Your API Key

LW AI is currently in a closed-access phase and does not offer self-service signup. To obtain an API key, contact us at support@linkwo.com with a brief description of your use case, and we will issue a key for you.

Important: Keep your API key secure and never share it publicly.

Using Your API Key

Include your API key in the Authorization header of every request:

curl https://openapi.linkwo.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-pro",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

OpenAI SDK Compatibility

LW AI API is fully compatible with the OpenAI SDK. Simply set the base URL and API key:

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://openapi.linkwo.ai/v1",
    api_key="YOUR_API_KEY"
)

Node.js

import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://openapi.linkwo.ai/v1',
  apiKey: 'YOUR_API_KEY',
});

Environment Variables

You can also set your API key as an environment variable:

export LINKWO_API_KEY="YOUR_API_KEY"

Then reference it in your code:

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://openapi.linkwo.ai/v1",
    api_key=os.environ.get("LINKWO_API_KEY")
)

Key Management

Viewing Key Status

  • To check your key's validity, remaining quota, or permission level, contact support@linkwo.com

Security Best Practices

  • Never share your API key with others
  • Rotate keys regularly for production applications
  • Use environment variables instead of hardcoding keys in source code
  • If a key is compromised, contact us immediately to revoke it and issue a new one

Rate Limits by Key Type

Key TypeRPMTPM
Free1040,000
Standard60200,000
EnterpriseCustomCustom