StarriseStarrise API
OverviewGuideAPI

Client Compatibility

Starrise-api is fully compatible with the OpenAI API format. Any client, SDK, or tool that supports OpenAI can connect b

Configuration

SettingOpenAI DefaultStarrise-api
Base URLhttps://api.openai.com/v1https://api.starrise.ai/v1
API KeyOpenAI API keyStarrise-api token (sk-...)

Sign in to the console and copy your API address (Base URL) from the home page. Paste it into your SDK or third-party tool as the Base URL / API Host. Example:

https://api.starrise.ai/v1

When using the official OpenAI SDK, make sure the Base URL ends with /v1.

Official SDKs

Python

pip install openai
from openai import OpenAI

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

Node.js

npm install openai
import OpenAI from 'openai'

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

OpenAI-Compatible Endpoints

These routes use Authorization: Bearer sk-... (or sk- prefix without Bearer in some tools).

EndpointMethodDescription
/v1/chat/completionsPOSTChat completions (streaming supported)
/v1/completionsPOSTLegacy text completions
/v1/responsesPOSTOpenAI Responses API
/v1/responses/compactPOSTResponses compaction
/v1/embeddingsPOSTText embeddings
/v1/rerankPOSTDocument reranking (Jina-style)
/v1/images/generationsPOSTImage generation
/v1/images/editsPOSTImage editing
/v1/editsPOSTLegacy image edit
/v1/audio/transcriptionsPOSTSpeech-to-text
/v1/audio/translationsPOSTAudio translation
/v1/audio/speechPOSTText-to-speech
/v1/moderationsPOSTContent moderation
/v1/modelsGETList models (OpenAI format)
/v1/models/:modelGETRetrieve model
/v1/realtimeGET (WebSocket)OpenAI Realtime API

Not implemented

/v1/images/variations, /v1/files/*, and /v1/fine-tunes/* return not-implemented on this gateway.

Claude (Anthropic) Endpoints

EndpointMethodAuth
/v1/messagesPOSTAuthorization: Bearer sk-... or x-api-key + anthropic-version

Model list with Anthropic headers: GET /v1/models with x-api-key and anthropic-version.

Gemini Endpoints

EndpointMethodAuth
/v1beta/modelsGETAuthorization, x-goog-api-key, or ?key=
/v1beta/models/*pathPOSTSame as above
/v1beta/openai/modelsGETOpenAI-style model list
/v1/models/*pathPOSTGemini relay under OpenAI path prefix

Midjourney (/mj)

Requires token via Authorization or mj-api-secret header.

EndpointMethodDescription
/mj/submit/imaginePOSTCreate image job
/mj/submit/changePOSTUpscale / variation
/mj/submit/describePOSTDescribe image
/mj/submit/blendPOSTBlend images
/mj/task/:id/fetchGETFetch task status
/mj/image/:idGETFetch result image

Suno (/suno)

EndpointMethodDescription
/suno/submit/:actionPOSTSubmit music generation
/suno/fetchPOSTBatch fetch tasks
/suno/fetch/:idGETFetch single task

Third-Party Tools

ToolConfiguration
ChatGPT Next WebSettings → API Host → https://api.starrise.ai
LobeChatAPI proxy URL + token
Cursor / ClineOverride OpenAI Base URL
LangChainOpenAI(base_url=..., api_key=...)
DifyOpenAI-compatible provider

Environment Variables

OPENAI_API_BASE=https://api.starrise.ai/v1
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Troubleshooting

IssueSolution
401 UnauthorizedCheck token; use Bearer sk-...
403 ForbiddenModel/IP restriction or banned user
404 Model not foundCall GET /v1/models or check console pricing
Connection timeoutEnsure base URL ends with /v1 for OpenAI SDK
SDK still hits OpenAISet base_url / baseURL explicitly

On this page