API Reference

API Reference

Use the API to generate games programmatically.

Base URL

https://ai-game-generator.com/api

Authentication

  • Use an API key from your settings.
  • Send it via Authorization: Bearer <key>.

Endpoints

POST /ai/generate

Generate a new game from a prompt.

Request

{
  "prompt": "Build a racing game with neon visuals"
}

Response

{
  "id": "gen_123",
  "status": "queued"
}

Notes

Refer to the dashboard for rate limits and credit usage.

API Reference