# Giky API Agent Integration Guide

Connect your coding assistant through the hosted MCP server, or give it the API contract when you want it to build an ordinary HTTP integration.

## Connect through MCP

Use the hosted Streamable HTTP endpoint to let compatible clients discover models and manage tasks. Model discovery is public. Configure your API key privately in the client for account-scoped tools; never include it in a prompt.

- [MCP setup and tools](https://gikyapi.com/docs/mcp/)

## Give your assistant the documentation

Use the prompt below when you want your coding assistant to write a direct REST integration instead of using MCP. It does not install a skill or configure an OpenAI-compatible endpoint.

```
Implement a server-side image generation integration using https://gikyapi.com/openapi.json and https://gikyapi.com/llms.txt.
Read https://gikyapi.com/api/catalog and choose an available, priced configuration.
Use AI_API_KEY from the server environment. Never put it in browser code or logs.
Persist a unique Idempotency-Key and the exact request body before submitting.
Submit POST /v1/tasks, then poll GET /v1/tasks/{id} with the same key.
Handle errors without submitting duplicate paid work.
Start with mocked HTTP tests. Ask me before making any paid request.
```

## Configure credentials privately

Set AI_API_KEY in your server environment or secret manager. Do not paste a production API key into the prompt. Give a test key a small spending limit and restrict models when appropriate.

- [API key settings](https://gikyapi.com/dashboard/keys/)

## Review before running

Check the model, parameters and price. Confirm the code saves task IDs, preserves request identity after timeouts, and downloads successful outputs. Use the working examples as references.

- [Python example](https://gikyapi.com/docs/python/)
- [JavaScript example](https://gikyapi.com/docs/javascript/)
- [Errors and retries](https://gikyapi.com/docs/errors/)
