Overview
- Category
- Image Tools
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/open-graph-image-preview
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/open-graph-image-preview/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
color_a· string · required- Enter primary color.
color_b· string · required- Enter secondary color.
steps· number · required- Enter steps or cells.
{
"type": "object",
"properties": {
"color_a": {
"type": "string",
"description": "Enter primary color."
},
"color_b": {
"type": "string",
"description": "Enter secondary color."
},
"steps": {
"type": "number",
"description": "Enter steps or cells."
}
},
"required": [
"color_a",
"color_b",
"steps"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
result· string- Generated result produced by the tool.
colors· array- Colors produced by the tool.
accessibility· array- Accessibility review produced by the tool.
export_value· string- Export value produced by the tool.
{
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Generated result produced by the tool."
},
"colors": {
"type": "array",
"description": "Colors produced by the tool."
},
"accessibility": {
"type": "array",
"description": "Accessibility review produced by the tool."
},
"export_value": {
"type": "string",
"description": "Export value produced by the tool."
}
},
"additionalProperties": false
}
Open Graph Image Preview worked example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/open-graph-image-preview/execute" \
-H "Content-Type: application/json" \
-d '{
"color_a": "#167C70",
"color_b": "#FFFFFF",
"steps": 8
}'
{
"ok": true,
"data": {
"slug": "open-graph-image-preview",
"result": {
"values": {
"result": "Contrast 5.06:1",
"colors": [
{
"step": 1,
"hex": "#167C70"
},
{
"step": 2,
"hex": "#378F84"
},
{
"step": 3,
"hex": "#59A199"
},
{
"step": 4,
"hex": "#7AB4AD"
},
{
"step": 5,
"hex": "#9BC7C2"
},
{
"step": 6,
"hex": "#BCDAD6"
},
{
"step": 7,
"hex": "#DEECEB"
},
{
"step": 8,
"hex": "#FFFFFF"
}
],
"accessibility": [
{
"standard": "WCAG AA normal text",
"status": "Pass"
},
{
"standard": "WCAG AA large text",
"status": "Pass"
}
],
"export_value": "#167C70, #378F84, #59A199, #7AB4AD, #9BC7C2, #BCDAD6, #DEECEB, #FFFFFF"
},
"display": {
"display": "Contrast 5.06:1"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.