Scale, Simplify, Secure Your API with AI

Transform your ideas into scalable realities faster than ever

from opalize import Opalize, ServerlessDeployment

# Initialize the Opalize client with your API key
op = Opalize(api_key="YOUR_API_KEY")

# Create a serverless vector space
# Assume "dimension" is required to match the dimensions of vectors you insert
op.create_space(
    name="products",
    dimension=1536,
    deployment=ServerlessDeployment(cloud='aws', region='us-west-2')
)
    
# Select the vector space for operations
space = op.Space("products")

# Mock vector and metadata (normally, you'd provide your own)
vector = [0.010, 2.34]  # ... len(vector) = 1536
metadata = {"id": 3056, "description": "Networked neural adapter"}

# Insert your vector(s) into the space
space.insert(
    items=[
        {"id": "some_id", "values": vector, "metadata": metadata}
    ]
)
const apiKey = "YOUR_API_KEY";
const url = "https://api.opalize.com/v1/spaces/products/insert";

const data = {
  items: [
    {
      id: "some_id",
      values: [0.010, 2.34, 1.23, 4.56],
      metadata: {
        id: 3056,
        description: "Networked neural adapter",
      },
    },
  ],
};

fetch(url, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: `Bearer {apiKey}`,
  },
  body: JSON.stringify(data),
})
  .then((response) => response.json())
  .then((result) => console.log("Success:", result))
  .catch((error) => console.error("Error:", error));
curl -X POST "https://api.opalize.com/v1/spaces/products/insert" \\
     -H "Content-Type: application/json" \\
     -H "Authorization: Bearer YOUR_API_KEY" \\
     -d '{
           "items": [
             {
               "id": "some_id",
               "values": [0.010, 2.34, 1.23, 4.56], 
               "metadata": {
                 "id": 3056, 
                 "description": "Networked neural adapter"
               }
             }
           ]
         }'

Designed for the Demands of Tomorrow

Experience unparalleled flexibility and performance at every stage of your growth

Near Instant Scalability
Epic Resource Management
Global Reach - Local Speed

Pricing That Grows With You

You only pay for what you need, when you need it. Choose your bandwidth requirement, and let's get building

Build your scenario

0
0
0
bytes
One-time cost
Initial record upload$0.00
Estimated monthly cost
Storage GB$0.00
Query cost$0.00
Write cost$0.00
Total/mo. $0.00
Get Started