API keys are not open yet. These docs describe the API as it will work when keys open, so you can plan your integration now.
Docs
ewpire API documentation
One OpenAI-compatible API for the text models in ewpire. Start with the first request, then go deeper section by section. Every example comes in curl, JavaScript and Python.
Base URLhttps://ewpire.com/api/v1
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.
- 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 keysCreate, limit and revoke the keys your code uses to call ewpire.