Neurons are serverless functions you design with a visual editor, and they control how your requests flow to AI models. Each Neuron is deployed as a secure API endpoint, and can be called from any application.

You can create as many Neurons as you want in your Prompteus account, and Neurons can be chained together to form more complex workflows.

Editing Neurons

Editing Neurons is done through the Prompteus Dashboard. Once your account and organization are setup, you can create a Neuron from the Neurons page.

The Workflow Editor inside Prompteus when creating a new Neuron.

When you create a new Neuron, you will be presented with the Neuron workflow editor.

Deploying Neurons

Before being able to call your Neurons through their API endpoint, you need to deploy your Neuron, and configure their access settings. Learn more about version management and deployment.

Calling a Neuron

Each Neuron can be called from a unique API URL. Your Neuron API URL is visible in the Neuron Settings, and is generated from your organization’s slug and the Neuron’s slug. You can manage your organization’s slug in the Team Settings.

https://run.prompteus.com/<organization-slug>/<neuron-slug>

In its simplest form, you can call your Neuron by sending a POST request to the API URL:

curl -X POST https://run.prompteus.com/<organization-slug>/<neuron-slug> \
  -H "Content-Type: application/json" \
  -d '{"input": "What is the meaning of life?"}'

For detailed information about calling Neurons, including authentication, error handling, and advanced options, see our API documentation.

We also provide an official TypeScript SDK (@prompteus-ai/neuron-runner) that offers a more convenient way to integrate with Neurons, including type safety and built-in error handling. See the SDK section of our API documentation for installation and usage details.

Every call to a Neuron is considered a Neuron Execution, which is the fundamental unit of cost in Prompteus. The first 50,000 executions are free every month, and every additional 100,000 executions costs $5.00.