LinguaChats.aiDocumentation

Quickstart

The LinguaChats API is fully OpenAI-compatible. If you've used the OpenAI SDK before, you already know how to use LinguaChats — just change the base URL and pick one of our specialized models.

1. Create an account

Sign up with your email. New accounts are activated within 24 hours, and you receive free starter credits automatically as soon as yours is active.

2. Create an API key

Go to Dashboard → API Keys and create a key. The full secret is shown only once — store it safely.

3. Make your first request

bash
curl https://www.linguachats.ai//v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "lyra",
    "messages": [
      {"role": "user", "content": "Write a two-line story about the sea."}
    ]
  }'

Or with the OpenAI Python SDK:

python
from openai import OpenAI

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

response = client.chat.completions.create(
    model="lyra",
    messages=[
        {"role": "user", "content": "Write a two-line story about the sea."}
    ],
)
print(response.choices[0].message.content)

Or the OpenAI Node SDK:

javascript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://www.linguachats.ai//v1",
  apiKey: "YOUR_API_KEY",
});

const response = await client.chat.completions.create({
  model: "lyra",
  messages: [
    { role: "user", content: "Write a two-line story about the sea." },
  ],
});
console.log(response.choices[0].message.content);

Next steps