Hilbert Curve Infographic

Generates an educational mathematical diagram explaining a degree 3 Hilbert curve, complete with a plotted graph, legend, and properties.

Hilbert Curve Infographic

Prompt

{ "type": "educational mathematical infographic", "header": { "title": "Hilbert Curve", "subtitle": "Degree 3 (Order 3)", "equation": "n = 3 -> 2^n x 2^n = 8 x 8 grid, 2^(2n) = 64 steps" }, "layout": { "left_panel": "large 2D line plot", "right_sidebar": "stacked informational panels and text blocks" }, "main_graph": { "axes": { "x_axis": "labeled 'x (column index)' with ticks 0 to 7", "y_axis": "labeled 'y (row index)' with ticks 0 to 7" }, "grid": "8x8 dashed light gray lines", "curve": { "description": "continuous non-intersecting path filling the grid", "style": "thick line with directional arrows", "colors": "gradient transitioning through purple, blue, green, yellow, orange, and red", "markers": [ "purple dot at bottom left labeled '00'", "blue dot at top left labeled '64'" ], "labels": "various two-digit numbers scattered along the path vertices, such as 01, 02, 32, 65, 70" } }, "sidebar": { "sections": [ { "title": "Legend", "type": "box with rounded corners", "count": 4, "items": [ "purple dot: 'Start (step 0)'", "blue dot: 'End (step 63)'", "black arrow: 'Direction of traversal'", "colored lines: 'Curve (colored by sub-quadrant progression)'" ] }, { "title": "Definition", "type": "text block", "text": "Hilbert curve of degree n maps the unit interval [0,1] onto the unit square [0,1]x[0,1] while preserving locality." }, { "title": "Properties", "type": "bulleted list", "heading": "For degree 3:", "count": 3, "items": [ "Grid size: 8 x 8 = 2^3 x 2^3", "Total steps: 64 = 2^{2*3}", "Visits each of the 64 grid points exactly once in a continuous path." ] }, { "title": "Quadrant structure (recursive)", "type": "2x2 colored grid", "count": 4, "boxes": [ "Top-left blue: 'Q2 (steps 32-63)'", "Top-right yellow: 'Q3 (steps 48-63)'", "Bottom-left purple: 'Q0 (steps 0-31)'", "Bottom-right pink: 'Q1 (steps 16-47)'" ], "footer_text": "Each quadrant is a degree-2 Hilbert curve (recursively defined)." } ] } }

Runs on 18 models

  • Flux
  • Flux 2
  • Flux Kontext
  • GPT-4o Image
  • GPT Image
  • GPT Image 2
  • GPT Image 2.5
  • Grok Imagine
  • Ideogram V3
  • Imagen 4
  • Midjourney
  • Nano Banana
  • +6 more

What this prompt produces

Realistic Group Selfie with Smartphone Flash Effect Not specified nano-banana-pro
Four Seasons Portrait Collage Not specified nano-banana-pro
Minimalist Dog Sketch Clipart Not specified nano-banana-pro
Mecha Girl figure concept generated by Nano Banana Pro Not specified nano-banana-pro
Candid Flash Photography: Chaotic Holiday Party (Duplicate) Not specified nano-banana-pro
Ethereal Floral Studio Portrait Not specified nano-banana-pro

Run this prompt with the API

The request below sends this prompt, with its default values filled in, to the first model it runs on. Swap the model name for any other model listed above.

Prompt API docs
/api/v1/gpt_image_2/text_to_image
curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "gpt-image-2",
  "prompt": "{\n  \"type\": \"educational mathematical infographic\",\n  \"header\": {\n    \"title\": \"Hilbert Curve\",\n    \"subtitle\": \"Degree 3 (Order 3)\",\n    \"equation\": \"n = 3 -> 2^n x 2^n = 8 x 8 grid, 2^(2n) = 64 steps\"\n  },\n  \"layout\": {\n    \"left_panel\": \"large 2D line plot\",\n    \"right_sidebar\": \"stacked informational panels and text blocks\"\n  },\n  \"main_graph\": {\n    \"axes\": {\n      \"x_axis\": \"labeled 'x (column index)' with ticks 0 to 7\",\n      \"y_axis\": \"labeled 'y (row index)' with ticks 0 to 7\"\n    },\n    \"grid\": \"8x8 dashed light gray lines\",\n    \"curve\": {\n      \"description\": \"continuous non-intersecting path filling the grid\",\n      \"style\": \"thick line with directional arrows\",\n      \"colors\": \"gradient transitioning through purple, blue, green, yellow, orange, and red\",\n      \"markers\": [\n        \"purple dot at bottom left labeled '00'\",\n        \"blue dot at top left labeled '64'\"\n      ],\n      \"labels\": \"various two-digit numbers scattered along the path vertices, such as 01, 02, 32, 65, 70\"\n    }\n  },\n  \"sidebar\": {\n    \"sections\": [\n      {\n        \"title\": \"Legend\",\n        \"type\": \"box with rounded corners\",\n        \"count\": 4,\n        \"items\": [\n          \"purple dot: 'Start (step 0)'\",\n          \"blue dot: 'End (step 63)'\",\n          \"black arrow: 'Direction of traversal'\",\n          \"colored lines: 'Curve (colored by sub-quadrant progression)'\"\n        ]\n      },\n      {\n        \"title\": \"Definition\",\n        \"type\": \"text block\",\n        \"text\": \"Hilbert curve of degree n maps the unit interval [0,1] onto the unit square [0,1]x[0,1] while preserving locality.\"\n      },\n      {\n        \"title\": \"Properties\",\n        \"type\": \"bulleted list\",\n        \"heading\": \"For degree 3:\",\n        \"count\": 3,\n        \"items\": [\n          \"Grid size: 8 x 8 = 2^3 x 2^3\",\n          \"Total steps: 64 = 2^{2*3}\",\n          \"Visits each of the 64 grid points exactly once in a continuous path.\"\n        ]\n      },\n      {\n        \"title\": \"Quadrant structure (recursive)\",\n        \"type\": \"2x2 colored grid\",\n        \"count\": 4,\n        \"boxes\": [\n          \"Top-left blue: 'Q2 (steps 32-63)'\",\n          \"Top-right yellow: 'Q3 (steps 48-63)'\",\n          \"Bottom-left purple: 'Q0 (steps 0-31)'\",\n          \"Bottom-right pink: 'Q1 (steps 16-47)'\"\n        ],\n        \"footer_text\": \"Each quadrant is a degree-2 Hilbert curve (recursively defined).\"\n      }\n    ]\n  }\n}"
}
JSON

Try a prompt

Estimated: $0.04 / image

Sign in to generate with RunAPI.

Sign in to generate

Sign in to start generating with your available language models.