# API reference

**Welcome to the KidJig Image API Reference**, your go-to guide for integrating AI-powered image generation, editing, and processing into your applications. This documentation provides detailed insights into available endpoints, request/response structures, and best practices to help you harness the full potential of KidJig's image capabilities.

***

#### **Overview**

The KidJig Image API empowers developers to create, modify, and manage images programmatically. Whether you’re building tools for digital art, marketing visuals, educational content, or dynamic user experiences, this API offers scalable solutions for generating high-quality images and transforming them in real time.

***

#### **Key Features of the Image API**

1. **Comprehensive Endpoints**: Generate images from text, edit existing images, create variations, and fetch image history.
2. **Detailed Parameters**: Control image dimensions, quality, style, output format, and more.
3. **Error Handling**: Clear guidance on resolving issues like invalid requests or rate limits.
4. **Best Practices**: Optimize performance, reduce latency, and ensure cost-efficiency.
5. **Interactive Demos**: Explore real-time examples to test endpoints and visualize outputs.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kidjig.gitbook.io/kidjig-docs/api-provider/image-models/api-reference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
