Docs
ewpire documentation
Guides to the modes of ewpire, and one OpenAI-compatible API for its text models. For the API, start with the first request, then go deeper section by section. Every example comes in curl, JavaScript and Python.
Base URLhttps://ewpire.com/api/v1OpenAPI description
curl https://ewpire.com/api/v1/chat/completions \
-H "Authorization: Bearer $EWPIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"auto","messages":[{"role":"user","content":"Hello!"}]}'Sections
- Getting startedMake your first request to the ewpire API in a few minutes, with curl or the official OpenAI SDK.
- AuthenticationEvery request carries an ewpire API key as a Bearer token in the Authorization header. A key belongs to one workspace and spends that workspace's credits.
- ModelsList the models the API serves, with their capabilities and prices in credits.
- ChatSend messages to any text model with POST /chat/completions, in the OpenAI format, streamed or not.
- ImagesComing soonImage generation through the API is coming soon. It already works in the ewpire app.
- VideoComing soonVideo generation through the API is coming soon. It will work the way it does in the ewpire app.
- ConsensusComing soonMulti-model consensus through the API is coming soon. It already works in the ewpire app.
- UsageWhat each request costs, how it is charged to your balance, and how to read your usage.
- ErrorsErrors come back in the OpenAI format, with a status that tells you whether to retry.
- Rate limitsEach key has a requests-per-minute limit and optional spend limits per day and per month.
- API keysAn ewpire API key belongs to one workspace and carries a requests-per-minute limit and optional daily and monthly spend limits. Revoking a key is immediate.
- Versioning and changesHow the ewpire API is versioned, what counts as a breaking change, how long an older version keeps working and how changes are announced.
Using ewpire
The workspace itself: what each mode does, answers to common questions and the state of the service.
- ChatQuestions and answers with a text model.
- CodeA site or an app built from your description, with a preview.
- ImageImages generated and edited from a prompt.
- VideoShort clips from a prompt or from an image.
- MusicSongs and instrumental tracks from a prompt.
- ConsensusOne question put to several models, and their answers compared.
- FAQHow ewpire works, what it costs, limits and troubleshooting.
- Service statusWhat the service measures about itself right now.
- ChangelogWhat changed in ewpire, by date.