MORPHWARE
HomeAboutRoadmapTelegramTwitterWebsite
  • ๐Ÿ‘‹Morphware Documents
    • ๐ŸงฎAbstract
    • โ›“๏ธWeb3 Client Acquisition
    • ๐ŸญIndustry Specific Solutions
    • ๐Ÿ—ƒ๏ธCompetitive Analysis
    • โ˜๏ธCloud Compute and API Integration
    • ๐Ÿง AI and Machine Learning Solutions
  • โš™๏ธAPI Docs
    • Credits
    • Pricing
    • Chat Completion
    • Ollama Embeddings
    • Image Generation
  • Overview
    • ๐Ÿ‘ฉโ€๐ŸซIntroduction
    • ๐Ÿ‘ฅTeam
    • ๐Ÿ—บ๏ธRoadmap
  • solutions
    • โ“Problem
    • ๐Ÿ”ฅSolution
  • economy
    • ๐Ÿช™Tokenomics
  • Legal
    • ๐ŸŽฉPotential
    • ๐Ÿ›ก๏ธGovernance and Community Engagement
  • Others
    • ๐Ÿ“Conclusion
  • community
    • ๐ŸŒWebsite
    • ๐ŸŒ Telegram
    • โœ–๏ธTwitter
    • ๐Ÿ“บTiktok
    • ๐Ÿ“ฑInstagram
    • ๐Ÿ‘€Discord
    • ๐Ÿ’ฌProduct
Powered by GitBook
On this page
  1. API Docs

Image Generation

PreviousOllama EmbeddingsNextIntroduction

Last updated 1 month ago

โš™๏ธ

Generate Images

post

Generates images based on provided text prompts. The response contains URLs to the generated images.

Authorizations
Body

Request parameters for image generation

modelstringOptional

The model ID to use for image generation. If not provided, the system default will be used.

promptstringRequired

The text prompt to generate images from

sizestringOptional

Size of the generated image in the format "widthxheight", e.g., "1024x1024"

Example: 512x512
ninteger ยท min: 1Optional

Number of images to generate

Default: 1
negative_promptstringOptional

Text prompt of what to exclude from the generated image

Responses
200
Successfully generated images
application/json
400
Bad request or generation error
application/json
401
Not authenticated
application/json
post
curl -X POST "https://app.morphware.com/images/api/v1/generations" \
  -H "Authorization: Bearer <YOUR_TOKEN>" \
  -d '{
    "prompt": "A beautiful sunset over the mountains",
    "size": "1024x1024",
    "n": 1,
    "negative_prompt": "blurry, low quality"
  }'
[
  {
    "url": "/cache/image/generations/abc123.png"
  },
  {
    "url": "/cache/image/generations/def456.png"
  }
]