# Images

### Search Image

Search for images using keywords.

{% openapi src="<https://api.all-images.ai/doc-json>" path="/v1/images/search" method="post" expanded="true" %}
<https://api.all-images.ai/doc-json>
{% endopenapi %}

### Download Image (return binary file)

You need to have enough credits. Credits are debited only once.

{% openapi src="<https://api.all-images.ai/doc-json>" path="/v1/images/download" method="post" expanded="true" %}
<https://api.all-images.ai/doc-json>
{% endopenapi %}

### Buy Image (return direct URL)

Same like Download Image, but return direct public link for image. \
You need to have enough credits. Credits are debited only once.

{% openapi src="<https://api.all-images.ai/doc-json>" path="/v1/images/buy" method="post" %}
<https://api.all-images.ai/doc-json>
{% endopenapi %}

### Display Image

Each image has a display/download URL. Possible formats: "preview" or "full".

{% openapi src="<https://api.all-images.ai/doc-json>" path="/v1/images/{format}/{imageId}.jpg" method="get" %}
<https://api.all-images.ai/doc-json>
{% endopenapi %}

### Get Download Images

List images you've downloaded.

{% openapi src="/files/8g66AbFfYtQDgYVP66du" path="/v1/images/downladed" method="post" %}
[doc-json.json](https://3000441458-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5eow6Q376HF7RKVY4hLt%2Fuploads%2FgTY9xuwEsG7bC9gkD1Xy%2Fdoc-json.json?alt=media\&token=48275e15-df91-4981-9bea-7f54124ca3b7)
{% endopenapi %}


---

# 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://developer.all-images.ai/all-images.ai-api/api-reference/images.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.
