StarriseStarrise API
OverviewGuideAPI

Quick Start

Get from registration to your first API call in three steps — matching the console onboarding flow.

Prerequisites

  • A Starrise-api account (click Get Started on the home page)
  • An API token (Authentication)

Step 1: Create an Account

  1. Open the Starrise-api console
  2. Register with email or supported OAuth (GitHub, Discord, etc.)
  3. New accounts may receive starter quota (as shown in your account dashboard)

Step 2: Create an API Token

  1. Open Tokens in the console
  2. Click Create Token
  3. Set a name and optional quota, expiration, and other limits
  4. Submit and Copy the key from the list — format: sk-...

The full key is shown once. Store it securely.

Step 3: Make Your First Request

curl https://api.starrise.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      { "role": "user", "content": "Hello!" }
    ]
  }'

Example response:

{
  "id": "chatcmpl-xxx",
  "object": "chat.completion",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "Hello! How can I help you today?"
    },
    "finish_reason": "stop"
  }],
  "usage": {
    "prompt_tokens": 10,
    "completion_tokens": 12,
    "total_tokens": 22
  }
}

Use the SDK

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.starrise.ai/v1",
    api_key="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Node.js

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://api.starrise.ai/v1',
  apiKey: 'sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
})

const response = await client.chat.completions.create({
  model: 'gpt-4o',
  messages: [{ role: 'user', content: 'Hello!' }]
})

console.log(response.choices[0].message.content)

Streaming

stream = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Tell me a story"}],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Next Steps

On this page