Image Generation

Generate a muscle diagram (full schema)

post/generateImage

Request

  • Base URL: https://api.anatome.dev
  • URL: https://api.anatome.dev/generateImage
  • Auth: none declared

Request body

gender'male' | 'female'
view'front' | 'back' | 'dual'
defsobject[]

SVG gradient/pattern definitions

widthinteger
heightinteger
backgroundstring
body_colorstring
border_colorstring
border_widthnumber
contour'on' | 'stroke' | 'off'

Body silhouette behind the muscles: on (filled, default), stroke (outline only, fill none), off (skip)

contour_colorstring

Contour fill; defaults to body_color

contour_strokestring

Contour stroke; defaults to border_color

contour_widthnumber

Contour stroke width; defaults to border_width

per_muscleobject

Per-muscle style override (highest priority)

side_filterobject

Highlight only one side: { biceps: 'left' }

format'svg' | 'png'
output'json' | 'raw'

Example request

{
  "layers": [
    {
      "color": "#DC2626",
      "muscles": [
        "chest",
        "abs"
      ],
      "opacity": 1
    }
  ]
}

Response

Rendered SVG

okboolean
svgstring
formatstring
genderstring
viewstring
muscles_renderedstring[]
available_muscles_countinteger
attributionstring
attribution_sourcestring
licensestring
duration_msinteger

Changes

No recorded changes to this operation across all 1 revision of this API.