Skip to main content
GET
/
sem
/
images
/
{data_id}
/
processed
import requests

response = requests.get(
    "https://api.atomscale.ai/sem/images/d290f1ee-6c54-4b01-90e6-d701748f0851/processed",
    headers={"X-API-KEY": "YOUR_API_KEY"},
    params={"return_as": "url-embed"}
)
processed = response.json()
{
  "url": "https://processed-bucket.s3.amazonaws.com/...",
  "file_name": "sem_image_processed.png",
  "file_format": "png",
  "metadata": {}
}
Returns the processed SEM image (the original image with the detected pattern overlaid). Use the return_as parameter to choose whether the image is returned as raw bytes or as a presigned URL.
data_id
string
required
The data entry UUID for the SEM image
return_as
string
required
How to return the image: bytes for the raw image bytes, url-download for a presigned download URL, or url-embed for a presigned URL suitable for embedding

Response

When return_as is url-download or url-embed, returns a JSON object describing the image. When return_as is bytes, returns the raw image bytes.
url
string
Presigned URL for the processed image
file_name
string
File name of the processed image
file_format
string
Image format (e.g., png)
metadata
object
Metadata associated with the processed image
import requests

response = requests.get(
    "https://api.atomscale.ai/sem/images/d290f1ee-6c54-4b01-90e6-d701748f0851/processed",
    headers={"X-API-KEY": "YOUR_API_KEY"},
    params={"return_as": "url-embed"}
)
processed = response.json()
{
  "url": "https://processed-bucket.s3.amazonaws.com/...",
  "file_name": "sem_image_processed.png",
  "file_format": "png",
  "metadata": {}
}