Getting Started

Make your first request in minutes: get an API key, set the base URL, and call a model.

1) Create an API key

Use “Get API Key” in the navbar to generate and manage keys.

2) Set baseURL

Base URL: https://api.coreapi.com/v1
Auth: Authorization: Bearer YOUR_API_KEY

3) First requests

Chat (OpenAI-compatible):

curl -X POST https://api.coreapi.com/v1/openai/chat/completions   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{
    "model": "gpt-4-turbo",
    "messages": [
      {"role": "user", "content": "Say hello!"}
    ]
  }'

Image (DALL·E 3):

curl -X POST https://api.coreapi.com/v1/openai/images/generations   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type": "application/json"   -d '{
    "model": "dall-e-3",
    "prompt": "A cozy cabin in the woods"
  }'

4) Tips

  • Use exponential backoff on 429/5xx.
  • Show loading states for long‑running jobs (image/video).
  • Never expose API keys in the browser; keep them server‑side and rate‑limit.

Mori API is an AI model aggregation platform that gives developers a single, unified API to access 50+ AI models across text, image, audio, and video — with transparent pricing, real‑time analytics, and enterprise‑grade reliability.

Copyright © 2024 CoreAPI Inc
All rights reserved