> For the complete documentation index, see [llms.txt](https://docs.archisketch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.archisketch.com/guide/dev-en/api-sdk/api/image.md).

# Image

## Get Image

> Retrieves image information using the image ID.\
> \
> \`imageUrl\` is provided by the CDN, and image options can be specified with the Query Parameters below.\
> \
> \### CDN Query Parameter\
> \- \`w\` : Width in pixels. If \`h\` is given, it scales down with the same aspect ratio. If both are absent, the original size is used.\
> \- \`h\` : Height in pixels. If \`w\` is given, it scales down with the same aspect ratio. If both are absent, the original size is used.\
> \- \`f\` : Output format. \`jpeg\`, \`jpg\`, \`png\`, \`webp\`. If absent: original format.\
> \- \`q\` : Compression quality. Default value: \`85\`

```json
{"openapi":"3.1.0","info":{"title":"Open API","version":"snapshot"},"tags":[{"name":"Image"}],"servers":[{"url":"https://openapi.archisketch.com"}],"security":[{"open-api-key":[]}],"paths":{"/api/v1/images/{id}":{"get":{"tags":["Image"],"summary":"Get Image","description":"Retrieves image information using the image ID.\n\n`imageUrl` is provided by the CDN, and image options can be specified with the Query Parameters below.\n\n### CDN Query Parameter\n- `w` : Width in pixels. If `h` is given, it scales down with the same aspect ratio. If both are absent, the original size is used.\n- `h` : Height in pixels. If `w` is given, it scales down with the same aspect ratio. If both are absent, the original size is used.\n- `f` : Output format. `jpeg`, `jpg`, `png`, `webp`. If absent: original format.\n- `q` : Compression quality. Default value: `85`","operationId":"getImage","parameters":[{"name":"id","in":"path","description":"Image ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"All responses return 200 (including success and failure) (5xx is exposed only in error conditions)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseImageDetail"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.archisketch.com/guide/dev-en/api-sdk/api/image.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
