📖 EcomAI API Documentation

Connect in 5 minutes

1. Quick Start

1 Register an account

Register for free at ecomai.online/register, your API Key will be auto-generated.

2 Choose a plan

Select a plan that suits you in the console (from $2/month), pay via PayPal or USDT, and credits are available instantly.

3 Call the API

Change your code's base URL to https://ecomai.online and use your API Key.

💡 Tip: New users get 10,000 free tokens for testing API connectivity.

2. API Calls

Fully compatible with the OpenAI API format. Just change base_url and api_key.

Base URL

https://ecomai.online

Available Models

ModelDescription
deepseek-v4-flashV4 Flash — Fast & Efficient
deepseek-v4-proV4 Pro — High Performance
deepseek-reasonerDeep Reasoning
deepseek-chatGeneral Chat
🚀 New models being added regularly: We are integrating more models. Stay tuned!

3. Code Examples

curl

curl https://ecomai.online/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer *** \
  -d '{
    "model": "deepseek-chat",
    "messages": [{"role": "user", "content": "Hello, please respond in English."}],
    "max_tokens": 500
  }'

Python (openai library)

from openai import OpenAI

client = OpenAI(
    base_url="https://ecomai.online",
    api_key="sk-your-api-key"
)

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello, please respond in English."}],
    max_tokens=500
)

print(response.choices[0].message.content)

Python (requests)

import requests

resp = requests.post(
    "https://ecomai.online/v1/chat/completions",
    headers={
        "Authorization": "Bearer sk-your-api-key",
        "Content-Type": "application/json"
    },
    json={
        "model": "deepseek-chat",
        "messages": [{"role": "user", "content": "Hello, please respond in English."}],
        "max_tokens": 500
    }
)

print(resp.json()["choices"][0]["message"]["content"])

JavaScript

const response = await fetch('https://ecomai.online/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer sk-your-api-key'
  },
  body: JSON.stringify({
    model: 'deepseek-chat',
    messages: [{role: 'user', content: 'Hello, please respond in English.'}],
    max_tokens: 500
  })
});

const data = await response.json();
console.log(data.choices[0].message.content);

4. FAQ

Q: How do I find my API Key?

Log in and go to the Console — your API Key is displayed at the top.

Q: How do I purchase a plan?

In the Console, go to the "Purchase Plan" section and choose the option that fits you. We accept PayPal and USDT (TRC20).

Q: What payment methods are supported?

Currently we support PayPal (international credit card / account balance) and USDT (TRC20 network).

Q: Can I use it from country X?

As long as your network can connect to the internet, you can use it. It is accessible globally.

Q: I get "insufficient quota" when testing the API?

New users only have 10,000 free tokens. If you've used them up, you need to purchase a plan to continue.

Q: Is there customer support?

For any issues, send an email to admin@ecomai.online. We will reply within 24 hours.