Sign up through https://app.ownlayer.com/. Each team member needs to create their accounts separately.
Create Organization
Find your registered email address on the top right of the home screen.
Click on your email address to access the dropdown menu.
Select 'Organizations'. This will bring you to your personal organization dashboard. If you'd like to create a separate organization to invite your team members, this is where you can do it
Add LLM Provider Credentials
To power any evals that use LLM as a judge or test prompts, you need to add the key from your LLM providers. Currently, we support OpenAI, Athorpic and Replicate.
Provider Credentials aren't shared among members of the organization. For members to use the key, they will need to add them separately
If you have multiple organizations, choose the one you'd like to create an API key for from the left panel.
Create and Install Ownlayer API Key
Choose 'API Keys' from the top panel and click 'Add API Key' to generate the key.
For security reasons, API keys are not synced among different members within the organization.
Python SDK
The Ownlayer SDK is our recommended way to integrate with Ownlayer.
Install SDK
pip install ownlayer
Add add OWNLAYER_API_KEY to your .env file:
OWNLAYER_API_KEY=ey...xxx
Change OpenAI or Anthropic imports to use Ownlayer wrapper
- import openai
+ from ownlayer.openai import openai
Add API Key to Your Header
You can also integrate with Ownlayer directly through API
Copy the generated API key and add it to the header of your API requests.
Follow our full API documentation for detailed instructions on how to use the API key. Example:
import json# Prepare the datadata ={"input":"""SOLAR FARM LAND LEASE AGREEMENTThis Solar Farm Land Lease Agreement ("Agreement") is made and entered into this 12 day of September, 2024, by and between:
Landowner: Hava Chen, with a principal address at 1231 Broadway, San Francisco, CA 91211("Landowner"), and Lessee: Jack Wang, with a principal address at 117 Market Street, San Francisco, CA 91211("Lessee").RECITALSWHEREAS, Landowner owns certain real property located at [Property Address or Legal Description], consisting of a 150-acre parcel of vacant land ("Premises"); and
WHEREAS, Lessee desires to lease the Premises for the purpose of constructing, installing, operating, and maintaining a state-of-the-art solar panel farm and related facilities (collectively, the "Solar Facility"); and
WHEREAS, Landowner agrees to lease the Premises to Lessee under the terms and conditions set forth herein.NOW, THEREFORE, in consideration of the mutual covenants and agreements herein contained, the parties hereto agree as follows:
1. LEASE OF PREMISES1.1 Lease Grant. Landowner hereby leases to Lessee, and Lessee hereby leases from Landowner, the Premises, for the purpose of constructing, installing, operating, and maintaining the Solar Facility.
1.2 Description of Premises. The Premises subject to this lease is described in Exhibit A, attached hereto and made a part hereof.
2. TERM2.1 Initial Term. The initial term of this Agreement shall be for a period of twenty (20) years, commencing on [Commencement Date] and expiring on [Expiration Date], unless sooner terminated as provided herein.
3. RENT3.1 Base Rent. Lessee shall pay to Landowner an annual base rent of Five Hundred Thousand Dollars ($500,000.00) ("Base Rent") for the use of the Premises. The Base Rent shall be payable in advance in equal monthly installments on the first day of each month.
3.2 Annual Increase. The Base Rent shall increase annually by two and one-half percent (2.5%) to account for inflation and market adjustments.
3.3 Percentage Rent. In addition to the Base Rent, Lessee shall pay to Landowner an amount equal to one percent (1%) of the gross revenues generated from the Solar Facility ("Percentage Rent") each year. The Percentage Rent shall be calculated and paid annually, based on the Lessee's fiscal year, within sixty (60) days after the end of each such fiscal year.
3.4 Payment Method. All rent payments shall be made payable to Landowner and delivered to [Landowner's Payment Address], or to such other place as Landowner may designate in writing from time to time.
4. USE OF PREMISES4.1 Permitted Use. Lessee shall use the Premises solely for the purpose of constructing, installing, operating, and maintaining the Solar Facility and for no other purpose without the prior written consent of Landowner.
5. MAINTENANCE AND REPAIRS5.1 Lessee's Obligations. Lessee shall, at its own expense, maintain the Premises and the Solar Facility in good order, condition, and repair, reasonable wear and tear excepted.
6. INSURANCE AND INDEMNITY6.1 Insurance. Lessee shall obtain and maintain in full force and effect during the term of this Agreement insurance coverage as specified in Exhibit B, attached hereto and made a part hereof.
6.2 Indemnity. Lessee agrees to indemnify, defend, and hold harmless Landowner from and against any and all claims, liabilities, losses, damages, costs, and expenses (including reasonable attorneys' fees) arising out of or in connection with Lessee's use of the Premises or the Solar Facility.
7. DEFAULT AND TERMINATION7.1 Events of Default. The occurrence of any of the following shall constitute an event of default by Lessee under this Agreement:
(a) Failure to pay any rent or other amount due hereunder within ten (10) days after written notice from Landowner;(b) Failure to perform any other covenant or condition of this Agreement within thirty (30) days after written notice from Landowner.
7.2 Landowner's Remedies. Upon the occurrence of an event of default by Lessee, Landowner may, at its option, terminate this Agreement and recover possession of the Premises.
8. MISCELLANEOUS8.1 Governing Law. This Agreement shall be governed by and construed in accordance with the laws of the state of [State].
8.2 Entire Agreement. This Agreement constitutes the entire agreement between the parties and supersedes all prior and contemporaneous agreements, representations, and understandings.
8.3 Amendments. This Agreement may be amended only by a written instrument signed by both parties.IN WITNESS WHEREOF, the parties hereto have executed this Solar Farm Land Lease Agreement as of the day and year first above written.
""", "output": """This Solar Farm Land Lease Agreement is between a Landowner and a Lessee for leasing a 150-acre parcel of land to construct and operate a solar panel farm. The key terms include:
1. Lease Terms: A 20-year lease, with the Lessee paying an annual base rent of $500,000, increasing by 2.5% annually, plus 1% of the solar farm's gross revenues.
2. Use of Premises: The Lessee can only use the land for the solar facility.3. Maintenance: The Lessee is responsible for maintaining the property.4. Insurance and Indemnity: The Lessee must maintain insurance and indemnify the Landowner against any claims.5. Default and Termination: Specifies default conditions and remedies for the Landowner.6. Miscellaneous: The agreement is governed by state law, constitutes the entire agreement, and can be amended in writing.
The agreement ends with signatures from both parties.""", "tags": ["Summary"], "additional_metadata": { "model":"Claude 3.5 Sonnet", "user_id":"9c073ed8-123d-4dc8-bd25-b875009b3681", "analytics":"https://app.amplitude.com/analytics/solarFarm/7165sd", "production":"true", "session_id":"7165sd-2478d-58d0-bd25-c8do0098d298", "prompt_version":"draft_v7" }, "settings":{"vendor":"anthropic","max_generation_tokens":500}, "prompt_tokens": 54,"completion_tokens": 14,"total_tokens": 68,}# Make the POST requestresponse = requests.post( "https://app.ownlayer.com/api/v1/inferences/", json=data, headers={ "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMzJmY2YyMjItNTFlNC00Y2RhLTg3YmUtZjc3OWMxOTY5NWRiIiwia2V5X2lkIjoiN2VlMjhkN2YtY2Y1OS00ZDViLWJkMTktMmRhNGJkZmM3NDE0IiwiZXhwIjoxNzUyODY0NjA3fQ.Zt-B5hBo63P4ueUJdUewqGXUZMcYLO_lfJF7EOPStPE"
},)# Print the responseprint(response.status_code)print(response.json())