# Custom Profiles

You can create routing profiles that are customized to your needs. You can take advantage of
all the modelling options described in the [Custom Model section](#tag/Custom-Model) and use the created custom profile (prefix `cp_`)
with our Routing, Matrix, Route Optimization and Isochrone APIs.
Note that the geographic coverage of a custom profile is restricted and the maximum possible coverage depends on the selected plan.
A curl example to create a profile:

```
curl -X POST -H "Content-Type: application/json" "https://graphhopper.com/api/1/profiles?key=YOUR_KEY" -d '{"bounds":{"bbox":[11.45462,48.00954,11.77322,48.2076]},"custom_model":{"priority":[{"if":"road_class == MOTORWAY","multiply_by":"0"}]},"profile":"car"}'
```
Instead of a rectangle (`bbox`) the `bounds` can also be a GeoJSON FeatureCollection with one or more polygons. The `type` must be `FeatureCollection`, a single `Feature` is not accepted:

```
"bounds": { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[11.8, 48.14], [11.73, 48.24], [11.57, 48.29], [11.42, 48.24], [11.35, 48.14], [11.42, 48.03], [11.57, 47.99], [11.73, 48.03], [11.8, 48.14]]] } } ] }
```
To quickly test your custom_model you can use the Routing API where a different custom model can be specified in every request.
Or use [GraphHopper Maps](https://graphhopper.com/maps/) and click the gear button.
**Creating custom profiles using the API Explorer**
Besides using the `/profiles` endpoint directly you can also create custom profiles using [our API explorer](https://explorer.graphhopper.com/?endpoint=profiles).
1. Visit the
[API explorer](https://explorer.graphhopper.com/?endpoint=profiles)
.
2. Set your API key with the "API key" button.
3. Now copy and paste the JSON to create a custom profile into the input window. To get started you can use the already pre-filled example, which will create a

custom profile that excludes motorways and is limited to the Munich area.
4. Click "Send". This creates a custom profile. Copy the returned
`id`
 from the output window (it starts with
`cp_`
).
5. To try this profile out you change the drop down to "Optimization API", pick the first example and replace
`car`
 in
`"profile": "car"`
 (
`vehicle_types`
 section) with the profile
`id`
 you just copied and click "Send".

The optimized route no longer uses motorways. Keep in mind that this is a simple example and the custom model language
is a lot more powerful than this with which you can avoid, exclude or prefer certain areas or road classes and a lot more.
Make sure you read the [Custom Model section](#tag/Custom-Model) to learn about all the details.
Note that you can use the profile `id` just as well for the `/matrix`, `/route` or `/isochrone` endpoint. E.g. select "Routing API"
and use the profile `id` in the request.

 - [POST /profiles](https://docs.graphhopper.com/openapi/custom-profiles/postprofile.md)
 - [GET /profiles](https://docs.graphhopper.com/openapi/custom-profiles/getprofile.md)
 - [POST /profiles/calculate](https://docs.graphhopper.com/openapi/custom-profiles/calculateprofile.md): An alternate endpoint for computing a profile for a large boundary asynchronously, where a request against the regular endpoint would result in a timeout. The request format is the same, but instead
 - [GET /profiles/solution/{jobId}](https://docs.graphhopper.com/openapi/custom-profiles/getprofilesolution.md)
 - [DELETE /profiles/{profileId}](https://docs.graphhopper.com/openapi/custom-profiles/deleteprofile.md)
