# 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="<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>" 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 %}
