Discover/Craiyon API
live

Craiyon APIcraiyon.com

Generate AI images from text prompts and search Craiyon's gallery via API. Returns base64 image data, dimensions, categories, URLs, and related tags.

Endpoint health
verified 2d ago
search_images
1/1 passing latest checkself-healing
Endpoints
2
Updated
26d ago

What is the Craiyon API?

The Craiyon API exposes 2 endpoints that let you generate AI images from text descriptions and search a library of previously created AI-generated images. The generate_image endpoint returns a base64-encoded image along with its dimensions, content type, and categories. The search_images endpoint queries the Craiyon gallery and returns up to 100 results per request, each with a direct image URL, prompt text, style, aspect ratio, and category data.

Try it
Model to use for generation. Accepted values: auto, art, photo, drawing, none.
Text description of the image to generate
Things to exclude from the generated image
api.parse.bot/scraper/a82807dc-7dab-407f-b2e8-dab885cfb875/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X POST 'https://api.parse.bot/scraper/a82807dc-7dab-407f-b2e8-dab885cfb875/generate_image' \
  -H 'X-API-Key: $PARSE_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "prompt": "a tree"
}'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace craiyon-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Craiyon AI Image Search — discover AI-generated images by text query."""
from parse_apis.craiyon_ai_image_search_api import Craiyon, NotFoundError

client = Craiyon()

# Search for cat-themed AI-generated images, capped at 5 total results
for image in client.images.search(query="cat", max_results=5, limit=5):
    print(image.prompt[:60], image.width, image.height, image.style)

# Drill into the first result of a different search
result = client.images.search(query="sunset landscape", limit=1).first()
if result:
    print(result.id, result.alt[:80])
    print("Categories:", result.categories)
    print("URL:", result.image_url)

# Typed error handling around a search call
try:
    for img in client.images.search(query="cyberpunk neon city", max_results=3, limit=3):
        print(img.prompt[:50], img.aspect_ratio)
except NotFoundError as exc:
    print(f"Search failed: {exc}")

print("Exercised: images.search (multiple queries, limit, max_results, field access)")
All endpoints · 2 totalmissing one? ·

Generate an AI image from a text prompt. Returns the image as base64-encoded data along with metadata. The image is always generated at auto aspect ratio.

Input
ParamTypeDescription
modelstringModel to use for generation. Accepted values: auto, art, photo, drawing, none.
promptrequiredstringText description of the image to generate
negative_promptstringThings to exclude from the generated image
Response
{
  "type": "object",
  "fields": {
    "image": "object containing id, width, height, content_type, base64_data, and categories",
    "model": "string - the model used",
    "prompt": "string - the prompt used for generation",
    "negative_prompt": "string - the negative prompt used"
  },
  "sample": {
    "data": {
      "image": {
        "id": "sbyX8a81RVK1LjPjsGrhIg",
        "width": 1024,
        "height": 1024,
        "categories": [
          "animals",
          "dogs"
        ],
        "base64_data": "UklGRipmAgBXRUJQ...",
        "content_type": "image/webp"
      },
      "model": "auto",
      "prompt": "a blue dog",
      "negative_prompt": ""
    },
    "status": "success"
  }
}

About the Craiyon API

Image Generation

The generate_image endpoint accepts a required prompt string and two optional parameters: model and negative_prompt. The model parameter accepts five values — auto, art, photo, drawing, and none — letting you control the visual style of the output. Use negative_prompt to steer the generator away from unwanted subjects or styles. The response includes an image object with id, width, height, content_type, base64_data, and categories, so the image data is immediately usable without an additional download step. Generation always uses an auto aspect ratio.

Gallery Search

The search_images endpoint takes a query string and an optional max_results integer (1–100). Results are ranked by relevance and each image object in the images array carries id, prompt, alt, width, height, image_url, categories, style, and aspect_ratio. The response also includes a tags array of related strings and a total_results count, which makes it straightforward to build browse or autocomplete features on top of existing Craiyon-generated content.

Data Shape Notes

The two endpoints serve distinct use cases: generate_image produces new content returned as raw base64 data, while search_images retrieves pre-existing images as hosted URLs. The categories field appears in both endpoint responses, enabling consistent filtering or labeling across generated and discovered images. The style and aspect_ratio fields are only present in search results, not in the generation response.

Reliability & maintenanceVerified

The Craiyon API is a managed, monitored endpoint for craiyon.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when craiyon.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official craiyon.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2d ago
Latest check
1/1 endpoint passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Generating on-demand illustrations for blog posts using a specific model type like drawing or art
  • Building an image discovery UI that queries the Craiyon gallery by topic and displays results with their original prompt text
  • Filtering generated or found images by categories to organize content by theme
  • Using negative_prompt to exclude specific visual elements when generating product concept art
  • Populating a mood board tool with images from search_images results, sorted by relevance
  • Logging generated image metadata including id, width, and height for an asset management pipeline
  • Surfacing related tags from search results to suggest alternative queries in a creative tool
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Craiyon have an official developer API?+
Craiyon does not publish a documented public developer API. This Parse API provides structured programmatic access to image generation and gallery search on craiyon.com.
What does generate_image return and what formats are supported?+
The endpoint returns an image object containing base64_data (the raw image encoded as a base64 string), content_type, width, height, id, and categories. The aspect ratio is always auto — the endpoint does not accept width, height, or aspect ratio parameters.
Does search_images support pagination or cursor-based browsing?+
The endpoint returns up to 100 results in a single response via the max_results parameter but does not expose a page offset, cursor, or continuation token. Deep pagination through the full gallery is not currently supported. You can fork this API on Parse and revise it to add an offset or page parameter if your use case requires it.
Can I retrieve a user's saved or liked images through this API?+
Not currently. The API covers gallery search by text query and direct image generation; user account data such as saved collections, liked images, or personal history is not exposed. You can fork the API on Parse and revise it to add an endpoint targeting user-specific gallery content.
What is the difference between the `style` field in search results and the `model` parameter in generation?+
The style field in search_images results is a descriptive label attached to existing images in the gallery. The model parameter in generate_image controls which generation model is used for new output, accepting auto, art, photo, drawing, or none. They are independent fields with no guaranteed mapping between them.
Page content last updated . Spec covers 2 endpoints from craiyon.com.
Related APIs in OtherSee all →
deepai.org API
Create stunning AI-generated images from text descriptions using over 123 different artistic styles like cyberpunk, anime, watercolor, and pixel art. Instantly transform your creative ideas into visual artwork and retrieve them as ready-to-use image files.
openclipart.org API
Search and discover clipart from OpenClipart, explore collections by tag, and retrieve detailed metadata including artist profiles, engagement metrics, and download URLs. Also exposes site-wide statistics such as total clipart count, artist count, and recent upload activity.
toolify.ai API
Search and browse premium .ai domain names available on the Toolify marketplace, filtering by keywords, categories, prices, and domain attributes to find the perfect domain for your project. Explore curated domain listings organized by category to discover valuable .ai domains suited to your needs.
vcg.com API
Search and discover millions of stock images from Visual China Group's vast media library, view trending content and popular search terms, and find visually similar images to match your creative needs. Access detailed image metadata, thumbnails, and brand information to power your content curation, design projects, or visual research workflows.
theresanaiforthat.com API
Search and discover AI tools across different tasks, get detailed information about specific tools, browse available deals, and stay updated on the latest tools. Find the perfect AI solution for your needs by filtering by task category or checking featured and trending tools.
icons8.com API
Search for millions of icons across different visual styles like colorful, pattern-based, and minimalist designs to find the perfect icon for your project. Discover and retrieve icons in your preferred style to enhance your designs and applications.
artificialanalysis.ai API
Compare and rank LLM models and providers across performance benchmarks, then dive into detailed specifications for any model to find the best fit for your needs. Discover performance metrics for specialized AI systems handling speech, images, and video, plus benchmark data for different hardware configurations.
agent.ai API
Search and discover AI agents in the Agent.ai marketplace by filtering through categories and tags, then view detailed agent information and builder profiles. Find the perfect AI solution for your needs by browsing available agents, exploring builder credentials, and comparing agent capabilities across different categories.