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

Ollama Embeddings

PreviousChat CompletionNextImage Generation

Last updated 1 month ago

: Required (JWT token or Api Key)

⚙️
Authentication

Generate Embeddings

post

Generates embeddings for provided text using the specified model. Embeddings are vector representations of text that capture semantic meaning.

Authorizations
Body

Request body for generating embeddings from text.

modelstringRequired

The ID of the model to use for generating embeddings.

promptstringRequired

The text to generate embeddings for.

keep_aliveone of | nullableOptional

Duration to keep the model loaded in memory.

integerOptional
or
stringOptional
Responses
200
Successfully generated embeddings
application/json
400
Model not found or invalid request
application/json
401
Not authenticated
application/json
post
curl -X POST "https://app.morphware.com/ollama/api/embeddings" \
  -H "Authorization: Bearer <YOUR_TOKEN>" \
  -d '{
    "model": "nomic-embed-text:latest",
    "prompt": "The quick brown fox jumps over the lazy dog"
  }'
{
  "embedding": [
    0.0023,
    -0.0118,
    0.0087,
    0.0524,
    -0.0159,
    0.0314
  ]
}