Giky API Client Libraries
Use the public OpenAPI contract to generate a typed client, or start with the maintained JavaScript and Python request examples. The task API uses ordinary HTTPS and JSON, so a package is optional.
On this page
Current package statusGenerate a TypeScript clientGenerate a Python clientProduction checklistCompatibility boundariesCurrent package status
Giky API does not currently publish an official npm or PyPI package. Third-party packages are not official unless they are linked from this documentation. The examples below generate local client code from the public contract instead of asking you to trust an unverified package name.
Generate a TypeScript client
Import the generated client on your server, set the base URL to `https://gikyapi.com`, and provide the API key through the generated authentication configuration. Keep the key out of browser code.
npx @openapitools/openapi-generator-cli generate \
-i https://gikyapi.com/openapi.json \
-g typescript-fetch \
-o ./generated/giky-apiGenerate a Python client
Install the generated package from its output directory and configure the Bearer token before creating a task.
npx @openapitools/openapi-generator-cli generate \
-i https://gikyapi.com/openapi.json \
-g python \
-o ./generated/giky-api-pythonProduction checklist
Apply the same request identity, authentication and recovery rules whether you use generated code or a direct HTTP client.
| Requirement | What to implement |
|---|---|
| Authentication | Send the API key only from a trusted server environment. |
| Duplicate protection | Add a unique `Idempotency-Key` to every task creation attempt. |
| Task completion | Poll the task endpoint or validate signed webhook deliveries. |
| Error handling | Retry only documented transient errors and preserve the original request ID. |
| Cost control | Read the selected configuration price before submitting work. |
Compatibility boundaries
The public contract is not a drop-in OpenAI Images endpoint. Generation inputs currently use JSON and reachable media URLs rather than multipart file uploads. Use the documented task schema instead of changing only an OpenAI SDK base URL.