> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Create Image

> Create Image

## Request contract

* **Method and path:** POST /apis/v1/htmlcss-to-image/create-image
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/htmlcss-to-image/create-image`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/htmlcss-to-image.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "htmlcss-to-image.create-image",
  "method": "POST",
  "path": "/apis/v1/htmlcss-to-image/create-image",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "additional_header_origins": {
              "description": "Up to 20 unique exact HTTP(S) origins that may also receive headers.",
              "examples": [
                [
                  "https://assets.example.com"
                ]
              ],
              "items": {
                "type": "string"
              },
              "maxItems": 20,
              "type": "array"
            },
            "block_consent_banners": {
              "default": false,
              "description": "Attempt to block common consent banners.",
              "type": "boolean"
            },
            "color_scheme": {
              "description": "Preferred browser color scheme: light or dark.",
              "enum": [
                "light",
                "dark"
              ],
              "type": "string"
            },
            "css": {
              "description": "CSS applied to supplied HTML or injected into a captured webpage.",
              "examples": [
                ".card { padding: 24px; }"
              ],
              "type": "string"
            },
            "dedupe_duration_s": {
              "description": "Reuse a matching recent render for this many seconds. Allowed durations depend on the account plan; free accounts accept 0 or 2592000 (30 days).",
              "minimum": 0,
              "type": "integer"
            },
            "device_scale": {
              "default": 2,
              "description": "Device scale factor from 0.1 to 3.",
              "maximum": 3,
              "minimum": 0.1,
              "type": "number"
            },
            "full_screen": {
              "default": false,
              "description": "Capture the full scrollable page instead of only the viewport.",
              "type": "boolean"
            },
            "google_fonts": {
              "description": "Google Font family names to load while rendering.",
              "examples": [
                [
                  "Inter",
                  "Roboto"
                ]
              ],
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "headers": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "HTTP headers sent to the captured page, with at most 20 case-insensitive names.",
              "examples": [
                {
                  "X-Preview-Mode": "true"
                }
              ],
              "maxProperties": 20,
              "type": "object"
            },
            "html": {
              "description": "HTML to render. Set this or url, but not both.",
              "examples": [
                "<div class='card'>Hello</div>"
              ],
              "minLength": 1,
              "type": "string"
            },
            "include_headers_on_subrequests": {
              "default": false,
              "description": "Also include supplied headers on page subrequests.",
              "type": "boolean"
            },
            "max_wait_ms": {
              "description": "Maximum wait from 500 to 10000 milliseconds for page loading.",
              "maximum": 10000,
              "minimum": 500,
              "type": "integer"
            },
            "media_type": {
              "description": "CSS media type used while rendering: screen or print.",
              "enum": [
                "screen"
              ],
              "type": "string"
            },
            "ms_delay": {
              "description": "Extra render delay in milliseconds, from 0 to 10000. Zero omits the explicit delay.",
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            },
            "render_when_ready": {
              "description": "Wait until the page signals that rendering is ready.",
              "enum": [
                false
              ],
              "type": "boolean"
            },
            "selector": {
              "description": "CSS selector for the element to capture.",
              "examples": [
                "#invoice"
              ],
              "type": "string"
            },
            "timezone": {
              "description": "IANA timezone exposed to the rendered page.",
              "examples": [
                "America/New_York"
              ],
              "type": "string"
            },
            "transparent_background": {
              "default": false,
              "description": "Render a transparent background where supported.",
              "type": "boolean"
            },
            "url": {
              "description": "Absolute, internet-reachable HTTP(S) webpage URL to capture. Set this or html, but not both; use headers for authenticated pages.",
              "examples": [
                "https://example.com"
              ],
              "type": "string"
            },
            "viewport_height": {
              "description": "Viewport height in pixels. Requires viewport_width.",
              "minimum": 1,
              "type": "integer"
            },
            "viewport_width": {
              "description": "Viewport width in pixels, from 1 to 6000. Requires viewport_height.",
              "maximum": 6000,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "html",
            "media_type",
            "ms_delay",
            "render_when_ready"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0143 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/htmlcss-to-image.json POST /apis/v1/htmlcss-to-image/create-image
openapi: 3.1.0
info:
  description: ''
  title: HTML/CSS to Image
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    htmlcss-to-image:
      description: ''
      title: HTML/CSS to Image
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: ecf7b25fc395f7aff68b9e1c0588b3d9a8bb0e613a7bdfd59ede194deb499492
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/htmlcss-to-image/create-image
    - /apis/v1/htmlcss-to-image/create-images-batch
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:5fdac18b626b581b67b86a9b942eb6c863587e9b7f566278d52cbce6161579d6
    facts_hash: ecf7b25fc395f7aff68b9e1c0588b3d9a8bb0e613a7bdfd59ede194deb499492
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: htmlcss-to-image
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/htmlcss-to-image/create-image:
    post:
      tags:
        - HTML/CSS to Image
      summary: Create Image
      operationId: htmlcss-to-image.create-image
      requestBody:
        content:
          application/json:
            schema:
              properties:
                additional_header_origins:
                  description: >-
                    Up to 20 unique exact HTTP(S) origins that may also receive
                    headers.
                  examples:
                    - - https://assets.example.com
                  items:
                    type: string
                  maxItems: 20
                  type: array
                block_consent_banners:
                  default: false
                  description: Attempt to block common consent banners.
                  type: boolean
                color_scheme:
                  description: 'Preferred browser color scheme: light or dark.'
                  enum:
                    - light
                    - dark
                  type: string
                css:
                  description: >-
                    CSS applied to supplied HTML or injected into a captured
                    webpage.
                  examples:
                    - '.card { padding: 24px; }'
                  type: string
                dedupe_duration_s:
                  description: >-
                    Reuse a matching recent render for this many seconds.
                    Allowed durations depend on the account plan; free accounts
                    accept 0 or 2592000 (30 days).
                  minimum: 0
                  type: integer
                device_scale:
                  default: 2
                  description: Device scale factor from 0.1 to 3.
                  maximum: 3
                  minimum: 0.1
                  type: number
                full_screen:
                  default: false
                  description: >-
                    Capture the full scrollable page instead of only the
                    viewport.
                  type: boolean
                google_fonts:
                  description: Google Font family names to load while rendering.
                  examples:
                    - - Inter
                      - Roboto
                  items:
                    type: string
                  type: array
                headers:
                  additionalProperties:
                    type: string
                  description: >-
                    HTTP headers sent to the captured page, with at most 20
                    case-insensitive names.
                  examples:
                    - X-Preview-Mode: 'true'
                  maxProperties: 20
                  type: object
                html:
                  description: HTML to render. Set this or url, but not both.
                  examples:
                    - <div class='card'>Hello</div>
                  minLength: 1
                  type: string
                include_headers_on_subrequests:
                  default: false
                  description: Also include supplied headers on page subrequests.
                  type: boolean
                max_wait_ms:
                  description: >-
                    Maximum wait from 500 to 10000 milliseconds for page
                    loading.
                  maximum: 10000
                  minimum: 500
                  type: integer
                media_type:
                  description: 'CSS media type used while rendering: screen or print.'
                  enum:
                    - screen
                  type: string
                ms_delay:
                  description: >-
                    Extra render delay in milliseconds, from 0 to 10000. Zero
                    omits the explicit delay.
                  maximum: 10000
                  minimum: 1
                  type: integer
                render_when_ready:
                  description: Wait until the page signals that rendering is ready.
                  enum:
                    - false
                  type: boolean
                selector:
                  description: CSS selector for the element to capture.
                  examples:
                    - '#invoice'
                  type: string
                timezone:
                  description: IANA timezone exposed to the rendered page.
                  examples:
                    - America/New_York
                  type: string
                transparent_background:
                  default: false
                  description: Render a transparent background where supported.
                  type: boolean
                url:
                  description: >-
                    Absolute, internet-reachable HTTP(S) webpage URL to capture.
                    Set this or html, but not both; use headers for
                    authenticated pages.
                  examples:
                    - https://example.com
                  type: string
                viewport_height:
                  description: Viewport height in pixels. Requires viewport_width.
                  minimum: 1
                  type: integer
                viewport_width:
                  description: >-
                    Viewport width in pixels, from 1 to 6000. Requires
                    viewport_height.
                  maximum: 6000
                  minimum: 1
                  type: integer
              required:
                - html
                - media_type
                - ms_delay
                - render_when_ready
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_HTMLCSS_TO_IMAGE_CREATE_IMAGE__output__public_data
          description: Tool result data
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response576A0Ea506F3_connect_HTMLCSS_TO_IMAGE_CREATE_IMAGE__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_HTMLCSS_TO_IMAGE_CREATE_IMAGE__output__364bfc33cfed7820
    Response576A0Ea506F3_connect_HTMLCSS_TO_IMAGE_CREATE_IMAGE__output__364bfc33cfed7820:
      properties:
        id:
          type: string
        url:
          type: string
      required:
        - id
        - url
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.