YMYour Model

Quick Start

Create an account, add balance, create an API key and send your first request.

This guide uses placeholders only. Replace YOUR_MODEL_API_KEY and YOUR_MODEL_ID with values from your own Your Model account.

1. Create an account

Open https://y-models.com and create an account.

2. Add balance

Open Top-up and add prepaid balance. The wallet is displayed in USD. The minimum top-up amount is currently 1 USD.

3. Create an API key

Open API Keys, create a key and copy it once. Store it in an environment variable:

export YOURMODEL_API_KEY="YOUR_MODEL_API_KEY"

Do not commit API keys to Git or paste them into public chats, screenshots or issue reports.

4. List available models

curl https://y-models.com/v1/models \
  -H "Authorization: Bearer YOUR_MODEL_API_KEY"

Use the returned model IDs, or copy a model ID from the model square: https://y-models.com/pricing.

5. Send your first request

curl https://y-models.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_MODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'

6. Check usage logs

Open Usage Logs to review requests, token usage and billing records.