# Giky API Documentation

Connect your application or AI coding tool to supported models through the REST task API or hosted MCP server. The current catalog covers image, video, music and audio capabilities as they become available. Start with model discovery, then add task tracking and billing controls.

## Quick start

Use the website to try a priced configuration, or call the REST API from your server. The API is asynchronous: submit once, save the task ID, then query until a result is ready.

- [Run the quickstart](https://gikyapi.com/docs/quickstart/)
- [Create an API key](https://gikyapi.com/dashboard/keys/)
- [Browse model references](https://gikyapi.com/docs/models/)

## API origin

Use this origin plus the endpoint path. There is no separate API domain required. Set AI_API_BASE_URL in your application so you can update it when your deployment domain changes.

```
https://gikyapi.com
```

## Authentication

Use a server-side API key. Keep the same Idempotency-Key and request body when retrying an uncertain submission.

```
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Idempotency-Key: YOUR_STABLE_REQUEST_ID
```

## Endpoint reference

These are public customer endpoints. A signed-in browser session is not a replacement for a Bearer API key.

| Method | Path | Purpose |
| --- | --- | --- |
| GET | /api/catalog | Public model parameters, USD prices and availability; no key |
| POST | /v1/tasks | Create one generation task; requires Idempotency-Key |
| GET | /v1/tasks/{id} | Query status and retrieve output URLs |
| GET | /v1/tasks | List tasks belonging to the current key |
| POST | /v1/tasks/{id}/cancel | Cancel a task only before upstream submission |
| GET | /v1/tasks/{id}/events | Inspect callback delivery records |

## Integration resources

Download the API contract and generate a typed client for ordinary HTTP tooling, or connect a compatible AI client to the hosted MCP server. Official npm and PyPI packages are not currently published; file upload and a drop-in OpenAI Images endpoint are also outside the current public contract.

- [Download OpenAPI JSON](https://gikyapi.com/openapi.json)
- [Client libraries and OpenAPI generation](https://gikyapi.com/docs/client-libraries/)
- [Python example](https://gikyapi.com/docs/python/)
- [JavaScript example](https://gikyapi.com/docs/javascript/)
- [Connect through MCP](https://gikyapi.com/docs/mcp/)
- [AI-readable documentation index](https://gikyapi.com/llms.txt)
